mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +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
|
@ -198,7 +198,7 @@ class StatAttributeTests(unittest.TestCase):
|
|||
def trunc(x): return x
|
||||
self.assertEquals(trunc(getattr(result, attr)),
|
||||
result[getattr(stat, name)])
|
||||
self.assertTrue(attr in members)
|
||||
self.assertIn(attr, members)
|
||||
|
||||
try:
|
||||
result[200]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue