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

Commit

Permalink
src/sage/misc/inherit_comparison.pyx: Mark doctests using cython # op…
Browse files Browse the repository at this point in the history
…tional - sage.misc.cython
  • Loading branch information
Matthias Koeppe committed Dec 16, 2021
1 parent 994df69 commit 8ecc8cc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/sage/misc/inherit_comparison.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ cdef class InheritComparisonMetaclass(type):
EXAMPLES::
sage: cython('''
sage: cython( # optional - sage.misc.cython
....: '''
....: from sage.misc.inherit_comparison cimport InheritComparisonMetaclass
....:
....: cdef class Base(object):
Expand All @@ -70,11 +71,11 @@ cdef class InheritComparisonMetaclass(type):
....: def __hash__(self):
....: return 1
....: ''')
sage: a = Derived()
sage: a == a
sage: a = Derived() # optional - sage.misc.cython
sage: a == a # optional - sage.misc.cython
True
sage: b = DerivedWithRichcmp()
sage: b == b
sage: b = DerivedWithRichcmp() # optional - sage.misc.cython
sage: b == b # optional - sage.misc.cython
Calling Base.__richcmp__
True
"""
Expand Down

0 comments on commit 8ecc8cc

Please sign in to comment.