# HG changeset patch
# User Mitesh Patel <qed777@gmail.com>
# Date 1286443341 25200
# Node ID 04b995aff092c890a3e4d0b57f3c36a69a5debfd
# Parent 02550c650ebdba4f071d207ee90c57eb3649cef0
#9828: Doctest fixes for Cython 0.13
diff --git a/sagenb/misc/sageinspect.py b/sagenb/misc/sageinspect.py
a
|
b
|
def __internal_tests(): |
1069 | 1069 | sage: sage_getdef(sage.rings.integer.Integer.factor, obj_name='factor') |
1070 | 1070 | "factor(algorithm='pari', proof=True, limit=None)" |
1071 | 1071 | |
1072 | | A cython method without an embedded position can lead to surprising errors:: |
1073 | | |
1074 | | sage: sage_getsource(sage.rings.integer.Integer.__init__, is_binary=True) |
1075 | | Traceback (most recent call last): |
1076 | | ... |
1077 | | TypeError: arg is not a module, class, method, function, traceback, frame, or code object |
1078 | | |
1079 | 1072 | sage: sage_getdef(sage.rings.integer.Integer.__init__, obj_name='__init__') |
1080 | | '__init__( [noargspec] )' |
1081 | | |
| 1073 | '__init__(x=None, base=0)' |
| 1074 | |
1082 | 1075 | Test _extract_source with some likely configurations, including no trailing |
1083 | 1076 | newline at the end of the file:: |
1084 | 1077 | |