Ticket #9958: trac_9958-fix-pureAssertError.patch

File trac_9958-fix-pureAssertError.patch, 1.9 KB (added by fbissey, 9 years ago)

fix pure assertErrors failures - updated for python-2.7.2

  • sage/categories/enumerated_sets.py

    # HG changeset patch
    # User Francois Bissey <francois.bissey@canterbury.ac.nz>
    # Date 1303957998 -43200
    # Node ID 57b3ef5598f1e89a7b396fe97befa20dd5891229
    # Parent  782a2d778ea9443d6019bc8892774e3e93a1080c
    #9958 fixing pure assertion errors
    
    diff --git a/sage/categories/enumerated_sets.py b/sage/categories/enumerated_sets.py
    a b  
    574574                sage: CC._test_enumerated_set_contains()
    575575                Traceback (most recent call last):
    576576                ...
    577                 AssertionError
     577                AssertionError: False is not true
    578578            """
    579579            tester = self._tester(**options)
    580580            i = 0
  • sage/categories/primer.py

    diff --git a/sage/categories/primer.py b/sage/categories/primer.py
    a b  
    506506      File ".../sage/categories/semigroups.py", line ..., in _test_associativity
    507507        tester.assert_((x * y) * z == x * (y * z))
    508508      ...
    509     AssertionError
     509    AssertionError: False is not true
    510510
    511511
    512512Wrapup:
  • sage/structure/sage_object.pyx

    diff --git a/sage/structure/sage_object.pyx b/sage/structure/sage_object.pyx
    a b  
    273273            sage: CC._test_category()
    274274            Traceback (most recent call last):
    275275            ...
    276             AssertionError
     276            AssertionError: False is not true
    277277        """
    278278        from sage.categories.category import Category
    279279        from sage.categories.objects import Objects
     
    312312            sage: tester.assert_(1 == 0)
    313313            Traceback (most recent call last):
    314314            ...
    315             AssertionError
     315            AssertionError: False is not true
    316316            sage: tester.assert_(1 == 0, "this is expected to fail")
    317317            Traceback (most recent call last):
    318318            ...