summaryrefslogtreecommitdiff
path: root/Lib/test/test_errno.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-01-23 15:40:09 +0000
committerEzio Melotti <ezio.melotti@gmail.com>2010-01-23 15:40:09 +0000
commitb58e0bd8bb7592dd48b30af546fc20f52ac625bd (patch)
tree2af0b7f4177890e1781f8d38aed8ebdc44c71f39 /Lib/test/test_errno.py
parent0f77f465ff7f5e39bbf701b575aebf75dd8d800d (diff)
downloadcpython-git-b58e0bd8bb7592dd48b30af546fc20f52ac625bd.tar.gz
use assert[Not]In where appropriate
Diffstat (limited to 'Lib/test/test_errno.py')
-rwxr-xr-xLib/test/test_errno.py4
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():