Ticket #10275: trac_10275-fixed.patch

File trac_10275-fixed.patch, 942 bytes (added by jhpalmieri, 20 months ago)
  • sage/misc/sageinspect.py

    # HG changeset patch
    # User Julian Rueth <julian.rueth@gmail.com>
    # Date 1318881938 25200
    # Node ID 27789d5e8409df6ccc623f41b2aecffbaf0e8a76
    # Parent  d83e1f591d711047e8ecb4000341b6da1ad03c0e
    Trac 10275: doctest to check 10275
    
    diff --git a/sage/misc/sageinspect.py b/sage/misc/sageinspect.py
    a b def sage_getvariablename(self, omit_unde 
    14901490 
    14911491        sage: sage_getvariablename(random_matrix(ZZ, 60)) 
    14921492        [] 
     1493 
     1494    Test that the problem in #10275 has been fixed:: 
     1495 
     1496        sage: M = random_matrix(ZZ, 30); M 
     1497        30 x 30 dense matrix over Integer Ring (type 'print M.str()' to see all of the entries) 
     1498        sage: M.hermite_form() 
     1499        30 x 30 dense matrix over Integer Ring 
    14931500    """ 
    1494     # first look through variables in stack frames 
    14951501    result = [] 
    14961502    for frame in inspect.stack(): 
    14971503        for name, obj in frame[0].f_globals.iteritems():