mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +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
|
|
@ -28,8 +28,8 @@ class ErrorcodeTests(unittest.TestCase):
|
|||
def test_attributes_in_errorcode(self):
|
||||
for attribute in errno.__dict__.iterkeys():
|
||||
if attribute.isupper():
|
||||
self.assertTrue(getattr(errno, attribute) in errno.errorcode,
|
||||
'no %s attr in errno.errorcode' % attribute)
|
||||
self.assertIn(getattr(errno, attribute), errno.errorcode,
|
||||
'no %s attr in errno.errorcode' % attribute)
|
||||
|
||||
|
||||
def test_main():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue