mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
use assert[Not]In where appropriate
A patch from Dave Malcolm.
This commit is contained in:
parent
a69ba65fdc
commit
577473fe68
75 changed files with 471 additions and 454 deletions
|
@ -125,7 +125,7 @@ class ReprTests(unittest.TestCase):
|
|||
s = r(ClassWithFailingRepr)
|
||||
self.assertTrue(s.startswith("<class "))
|
||||
self.assertTrue(s.endswith(">"))
|
||||
self.assertTrue(s.find("...") in [12, 13])
|
||||
self.assertIn(s.find("..."), [12, 13])
|
||||
|
||||
def test_lambda(self):
|
||||
self.assertTrue(repr(lambda x: x).startswith(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue