mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +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
|
@ -228,7 +228,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