Ticket #8988: trac_8988_cmp_fix.patch

File trac_8988_cmp_fix.patch, 718 bytes (added by novoselt, 12 years ago)
  • sage/schemes/generic/toric_variety.py

    # HG changeset patch
    # User Andrey Novoseltsev <novoselt@gmail.com>
    # Date 1278001088 21600
    # Node ID 3537a9bb3d30e27ee85494777ffea703d05fb1d1
    # Parent  1455674391b30d521942912358e4c10bb9badea4
    Trac 8988: Fix __cmp__ doctest to eliminate randomness.
    
    diff -r 1455674391b3 -r 3537a9bb3d30 sage/schemes/generic/toric_variety.py
    a b  
    488488            0
    489489            sage: P1xP1 is P1xP1b
    490490            False
    491             sage: cmp(P1xP1, 1)
     491            sage: cmp(P1xP1, 1) * cmp(1, P1xP1)
    492492            -1
    493493        """
    494494        c = cmp(type(self), type(right))