Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/test/test_errno.py

    r2 r391  
    1515        # No unexpected attributes should be on the module.
    1616        for error_code in std_c_errors:
    17             self.assert_(hasattr(errno, error_code),
     17            self.assertTrue(hasattr(errno, error_code),
    1818                            "errno is missing %s" % error_code)
    1919
     
    2121        # Every key value in errno.errorcode should be on the module.
    2222        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)
    2424
    2525
     
    2929        for attribute in errno.__dict__.iterkeys():
    3030            if attribute.isupper():
    31                 self.assert_(getattr(errno, attribute) in errno.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)
    3333
    3434
Note: See TracChangeset for help on using the changeset viewer.