diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-01-23 15:40:09 +0000 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-01-23 15:40:09 +0000 |
commit | b58e0bd8bb7592dd48b30af546fc20f52ac625bd (patch) | |
tree | 2af0b7f4177890e1781f8d38aed8ebdc44c71f39 /Lib/test/test_errno.py | |
parent | 0f77f465ff7f5e39bbf701b575aebf75dd8d800d (diff) | |
download | cpython-git-b58e0bd8bb7592dd48b30af546fc20f52ac625bd.tar.gz |
use assert[Not]In where appropriate
Diffstat (limited to 'Lib/test/test_errno.py')
-rwxr-xr-x | Lib/test/test_errno.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_errno.py b/Lib/test/test_errno.py index 80edcc680a..621335cc0f 100755 --- a/Lib/test/test_errno.py +++ b/Lib/test/test_errno.py @@ -28,8 +28,8 @@ class ErrorcodeTests(unittest.TestCase): def test_attributes_in_errorcode(self): for attribute in errno.__dict__.keys(): 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(): |