Ticket #9958: trac_9958-sage_unittest.patch

File trac_9958-sage_unittest.patch, 2.3 KB (added by fbissey, 9 years ago)

fix sage_unittest.py failures - updated for python-2.7.2

  • sage/misc/sage_unittest.py

    # HG changeset patch
    # User Francois Bissey <francois.bissey@canterbury.ac.nz>
    # Date 1303871001 -43200
    # Node ID c3fd103cb942608643f5b9a69b65bf08ea1cfd20
    # Parent  ad197c0ab76d561f3c33a3ad7af0645414087408
    #9958 fix AssertionError in sage_unittest.py for python-2.7
    
    diff --git a/sage/misc/sage_unittest.py b/sage/misc/sage_unittest.py
    a b  
    201201            Failure in _test_b:
    202202            Traceback (most recent call last):
    203203              ...
    204             AssertionError
     204            AssertionError: None
    205205            ------------------------------------------------------------
    206206            Failure in _test_d:
    207207            Traceback (most recent call last):
    208208              ...
    209             AssertionError
     209            AssertionError: None
    210210            ------------------------------------------------------------
    211211            Failure in _test_pickling:
    212212            Traceback (most recent call last):
     
    220220            running ._test_b() . . . fail
    221221            Traceback (most recent call last):
    222222              ...
    223             AssertionError
     223            AssertionError: None
    224224            ------------------------------------------------------------
    225225            running ._test_c() . . . pass
    226226            running ._test_category() . . . pass
    227227            running ._test_d() . . . fail
    228228            Traceback (most recent call last):
    229229              ...
    230             AssertionError
     230            AssertionError: None
    231231            ------------------------------------------------------------
    232232            running ._test_not_implemented_methods() . . . pass
    233233            running ._test_pickling() . . . fail
     
    249249              File ..., in _test_b
    250250                def _test_b(self, tester): tester.fail()
    251251              ...
    252             AssertionError
     252            AssertionError: None
    253253
    254254        In conjonction with ``%pdb on``, this allows for the debbuger
    255255        to jump directly to the first failure location.
     
    311311        sage: tester.assert_(1 == 0)
    312312        Traceback (most recent call last):
    313313        ...
    314         AssertionError
     314        AssertionError: False is not true
    315315        sage: tester.assert_(1 == 0, "this is expected to fail")
    316316        Traceback (most recent call last):
    317317        ...