Ticket #10094: trac_10094_fix_doctests.patch

File trac_10094_fix_doctests.patch, 1.9 KB (added by vbraun, 12 years ago)

Initial patch

  • sage/misc/sageinspect.py

    # HG changeset patch
    # User Volker Braun <vbraun@stp.dias.ie>
    # Date 1286463298 -3600
    # Node ID 6c45371c141be543f021c1ffb6c536ab95dced77
    # Parent  625622ab238812cfc9d08ce25d0ab4819a2b135e
    Trac #10094: fix doctests
    
    diff -r 625622ab2388 -r 6c45371c141b 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     A cython method without an embedded position can lead to surprising errors::
     1058    This used to be problematic, but was fixed in #10094:
    10591059   
    10601060        sage: sage_getsource(sage.rings.integer.Integer.__init__, is_binary=True)
    1061         Traceback (most recent call last):
    1062         ...
    1063         TypeError: arg is not a module, class, method, function, traceback, frame, or code object
    1064 
     1061        '    def __init__(self, x=None, unsigned int base=0):\n...'
    10651062        sage: sage_getdef(sage.rings.integer.Integer.__init__, obj_name='__init__')
    1066         '__init__( [noargspec] )'
     1063        '__init__(x=None, base=0)'
    10671064
    10681065    Test _extract_source with some likely configurations, including no trailing
    10691066    newline at the end of the file::
  • sage/plot/colors.py

    diff -r 625622ab2388 -r 6c45371c141b sage/plot/colors.py
    a b  
    12301230            0
    12311231            sage: maps.load_maps()
    12321232            sage: len(maps.maps)
    1233             116
     1233            134
    12341234        """
    12351235        global cm
    12361236        if not cm:
     
    12741274            sage: from sage.plot.colors import Colormaps
    12751275            sage: maps = Colormaps()
    12761276            sage: len(maps)
    1277             116
     1277            134
    12781278        """
    12791279        self.load_maps()
    12801280        return len(self.maps)