Ticket #12351: trac_12351-doctest.patch

File trac_12351-doctest.patch, 765 bytes (added by davidloeffler, 8 years ago)

Apply only this patch.

  • sage/combinat/posets/elements.py

    # HG changeset patch
    # User David Loeffler <d.loeffler.01@cantab.net>
    # Date 1331587600 0
    # Node ID 5f7131d41ebf8219cf0b9efa467b703128369f87
    # Parent  68e89260148df131fec1708338ceba3ea964b2bb
    #12351: doctest poset comparison bug fixed by #10998
    
    diff --git a/sage/combinat/posets/elements.py b/sage/combinat/posets/elements.py
    a b  
    104104
    105105            sage: PosetElement(P,1,"c") == PosetElement(P,0,"c")
    106106            True
     107
     108        Test that :trac:`12351` is fixed::
     109
     110            sage: P(0) == int(0)
     111            False
    107112        """
    108113        # This should instead exploit unique representation, using
    109114        # self is other, or best inherit __eq__ from there. But there