• Benjamin Peterson's avatar
    Merged revisions 70837,70864,70878,71004,71032,71043 via svnmerge from · 7fe73a17
    Benjamin Peterson yazdı
    svn+ssh://pythondev@svn.python.org/python/trunk
    
    ........
      r70837 | gregory.p.smith | 2009-03-31 11:54:10 -0500 (Tue, 31 Mar 2009) | 9 lines
    
      The unittest.TestCase.assertEqual() now displays the differences in lists,
      tuples, dicts and sets on failure.
    
      Many new handy type and comparison specific assert* methods have been added
      that fail with error messages actually useful for debugging.  Contributed in
      by Google and completed with help from mfoord and GvR at PyCon 2009 sprints.
    
      Discussion lives in http://bugs.python.org/issue2578.
    ........
      r70864 | gregory.p.smith | 2009-03-31 14:03:28 -0500 (Tue, 31 Mar 2009) | 10 lines
    
      Rename the actual method definitions to the official assertFoo names.
    
      Adds unittests to make sure the old fail* names continue to work now
      and adds a comment that they are pending deprecation.
    
      Also adds a test to confirm that the plural Equals method variants
      continue to exist even though we're unlikely to deprecate those.
    
      http://bugs.python.org/issue2578
    ........
      r70878 | gregory.p.smith | 2009-03-31 14:59:14 -0500 (Tue, 31 Mar 2009) | 3 lines
    
      Issue an actual PendingDeprecationWarning for the TestCase.fail* methods.
      Document the deprecation.
    ........
      r71004 | benjamin.peterson | 2009-04-01 18:15:49 -0500 (Wed, 01 Apr 2009) | 1 line
    
      remove double underscores
    ........
      r71032 | michael.foord | 2009-04-01 22:20:38 -0500 (Wed, 01 Apr 2009) | 13 lines
    
      Better exception messages for unittest assert methods.
    
      - unittest.assertNotEqual() now uses the inequality operator (!=) instead
        of the equality operator.
    
      - Default assertTrue and assertFalse messages are now useful.
    
      - TestCase has a longMessage attribute. This defaults to False, but if set to True
        useful error messages are shown in addition to explicit messages passed to assert methods.
    
      Issue #5663
    ........
      r71043 | michael.foord | 2009-04-02 00:51:54 -0500 (Thu, 02 Apr 2009) | 7 lines
    
      Store the functions in the _type_equality_funcs as wrapped objects that are deep copyable.
    
      This allows for the deep copying of TestCase instances.
    
      Issue 5660
    ........
    7fe73a17
test_gc.py 19.8 KB