Ticket #8988: trac_8988-sageinspect_doctest_fix.patch

File trac_8988-sageinspect_doctest_fix.patch, 1020 bytes (added by David Loeffler, 12 years ago)

fix a broken doctest in sageinspect

  • sage/misc/sageinspect.py

    # HG changeset patch
    # User David Loeffler <d.loeffler.01@cantab.net>
    # Date 1277973630 -3600
    # Node ID a7c1f37251564487e9cfb6fdec2a35dec4e66e1a
    # Parent  bbc65f443ea842243acc4e850a5a38ff9ab239ae
    #8988: fix a random broken introspection doctest
    
    diff -r bbc65f443ea8 -r a7c1f3725156 sage/misc/sageinspect.py
    a b  
    965965
    966966    If the user has assigned an object ``obj`` to a variable name,
    967967    then return that variable name.  If several variables point to
    968     ``obj``, return a list of those names.  If
     968    ``obj``, return a sorted list of those names.  If
    969969    ``omit_underscore_names`` is True (the default) then omit names
    970970    starting with an underscore "_".
    971971
     
    10001000    if len(result) == 1:
    10011001        return result[0]
    10021002    else:
    1003         return result
     1003        return sorted(result)
    10041004
    10051005__internal_teststring = '''
    10061006import os                                  # 1