Ticket #12677: trac_12677-sagenb-sageinspect_dont_use_Poset-nt.patch

File trac_12677-sagenb-sageinspect_dont_use_Poset-nt.patch, 1.2 KB (added by nthiery, 10 years ago)
  • sagenb/misc/sageinspect.py

    # HG changeset patch
    # User Nicolas M. Thiery <nthiery@users.sf.net>
    # Date 1331914883 -3600
    # Node ID f721b81ee99294a8fcfb525afef96d919210e452
    # Parent  a9be55f78734eaa798db314e2051a052757640ed
    #12677: Make the doctests of sage.misc.sageinspect.sage_getargspec independent of ``Poset``
    
    diff --git a/sagenb/misc/sageinspect.py b/sagenb/misc/sageinspect.py
    a b def sage_getargspec(obj): 
    648648    EXAMPLES::
    649649
    650650        sage: from sagenb.misc.sageinspect import sage_getargspec
     651        sage: def f(x, y, z=1, t=2, *args, **keywords):
     652        ...       pass
     653        sage: sage_getargspec(f)
     654        (['x', 'y', 'z', 't'], 'args', 'keywords', (1, 2))
     655
     656    We now run sage_getargspec on some functions from the Sage library::
     657
    651658        sage: sage_getargspec(identity_matrix)
    652659        (['ring', 'n', 'sparse'], None, None, (0, False))
    653         sage: sage_getargspec(Poset)
    654         (['data', 'element_labels', 'cover_relations', 'category', 'facade', 'key'], None, None, (None, None, False, None, None, None))
    655660        sage: sage_getargspec(factor)
    656661        (['n', 'proof', 'int_', 'algorithm', 'verbose'],
    657662         None,