mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
use assert[Not]In where appropriate
This commit is contained in:
parent
8cd0a66a0f
commit
aa98058cc4
86 changed files with 622 additions and 599 deletions
|
@ -50,8 +50,8 @@ class StructSeqTest(unittest.TestCase):
|
|||
def test_contains(self):
|
||||
t1 = time.gmtime()
|
||||
for item in t1:
|
||||
self.assertTrue(item in t1)
|
||||
self.assertTrue(-42 not in t1)
|
||||
self.assertIn(item, t1)
|
||||
self.assertNotIn(-42, t1)
|
||||
|
||||
def test_hash(self):
|
||||
t1 = time.gmtime()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue