Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac 19488 fixing some of the failing doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Chapoton committed Aug 27, 2016
1 parent 6f36d1a commit 7f8d438
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/sage/categories/examples/sets_cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def __init__(self):
sage: P.category()
Category of sets
sage: P(13) == 13
False
True
sage: ZZ(P(13)) == 13
True
sage: P(13) + 1 == 14
Expand All @@ -495,8 +495,6 @@ def __init__(self):
self.mor = Hom(self, IntegerRing())(lambda z: z.value)
self._populate_coercion_lists_(embedding=self.mor)



def _repr_(self):
"""
TESTS::
Expand Down
8 changes: 4 additions & 4 deletions src/sage/structure/element_wrapper.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,10 @@ cdef class ElementWrapper(Element):
sage: parent = DummyParent("A parent")
sage: x = ElementWrapper(parent, 1)
sage: y = ElementWrapper(parent, 2)
sage: x.__lt__(x), x.__lt__(y), y.__lt__(x), x.__lt__(1)
(False, False, False, False)
sage: x < x, x < y, y < x, x < 1
(False, False, False, False)
sage: x.__lt__(x), x.__lt__(y), y.__lt__(x)
(False, False, False)
sage: x < x, x < y, y < x
(False, False, False)
sage: sorted([x,y])
[1, 2]
sage: sorted([y,x])
Expand Down

0 comments on commit 7f8d438

Please sign in to comment.