From aa98058cc44ba20f35c106d20918c6196b737561 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Sat, 23 Jan 2010 23:04:36 +0000 Subject: use assert[Not]In where appropriate --- Lib/test/test_errno.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_errno.py') diff --git a/Lib/test/test_errno.py b/Lib/test/test_errno.py index 4adc1f0517..bb8918f32f 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__.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(): -- cgit v1.2.1