Ticket #9828: trac_9828-sagenb_cython_0_13.patch

File trac_9828-sagenb_cython_0_13.patch, 1.1 KB (added by mpatel, 12 years ago)

SageNB doctest fixes. Apply to sagenb repository.

  • sagenb/misc/sageinspect.py

    # 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(): 
    10691069        sage: sage_getdef(sage.rings.integer.Integer.factor, obj_name='factor')
    10701070        "factor(algorithm='pari', proof=True, limit=None)"
    10711071
    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 
    10791072        sage: sage_getdef(sage.rings.integer.Integer.__init__, obj_name='__init__')
    1080         '__init__( [noargspec] )'
    1081 
     1073        '__init__(x=None, base=0)'
     1074 
    10821075    Test _extract_source with some likely configurations, including no trailing
    10831076    newline at the end of the file::
    10841077