Changeset 391 for python/trunk/Lib/test/test_errno.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/test/test_errno.py
r2 r391 15 15 # No unexpected attributes should be on the module. 16 16 for error_code in std_c_errors: 17 self.assert _(hasattr(errno, error_code),17 self.assertTrue(hasattr(errno, error_code), 18 18 "errno is missing %s" % error_code) 19 19 … … 21 21 # Every key value in errno.errorcode should be on the module. 22 22 for value in errno.errorcode.itervalues(): 23 self.assert _(hasattr(errno, value), 'no %s attr in errno' % value)23 self.assertTrue(hasattr(errno, value), 'no %s attr in errno' % value) 24 24 25 25 … … 29 29 for attribute in errno.__dict__.iterkeys(): 30 30 if attribute.isupper(): 31 self.assert _(getattr(errno, attribute) inerrno.errorcode,32 'no %s attr in errno.errorcode' % attribute)31 self.assertIn(getattr(errno, attribute), errno.errorcode, 32 'no %s attr in errno.errorcode' % attribute) 33 33 34 34
Note:
See TracChangeset
for help on using the changeset viewer.