Ticket #10094: 10094_fix_doctests.2.patch

File 10094_fix_doctests.2.patch, 1.1 KB (added by jdemeyer, 12 years ago)

Updated doctest patch

  • sage/misc/sageinspect.py

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1288699201 -3600
    # Node ID e7eabc2c6c5102efd5adf49e53b20bb9567f57f4
    # Parent  f5e6724a274008cd284bbcac19b98a555a3cc667
    #10094: Add a doctest for sage.misc.sageinspect.sage_getsource applied on a Cython function
    
    diff -r f5e6724a2740 -r e7eabc2c6c51 sage/misc/sageinspect.py
    a b  
    10551055        sage: sage_getdef(sage.rings.integer.Integer.factor, obj_name='factor')
    10561056        "factor(algorithm='pari', proof=True, limit=None)"
    10571057
     1058    This used to be problematic, but was fixed in #10094::
     1059       
     1060        sage: sage_getsource(sage.rings.integer.Integer.__init__, is_binary=True)
     1061        '    def __init__(self, x=None, unsigned int base=0):\n...'
    10581062        sage: sage_getdef(sage.rings.integer.Integer.__init__, obj_name='__init__')
    10591063        '__init__(x=None, base=0)'
    1060  
     1064
    10611065    Test _extract_source with some likely configurations, including no trailing
    10621066    newline at the end of the file::
    10631067