# 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 |
| 1490 | 1490 | |
| 1491 | 1491 | sage: sage_getvariablename(random_matrix(ZZ, 60)) |
| 1492 | 1492 | [] |
| | 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 |
| 1493 | 1500 | """ |
| 1494 | | # first look through variables in stack frames |
| 1495 | 1501 | result = [] |
| 1496 | 1502 | for frame in inspect.stack(): |
| 1497 | 1503 | for name, obj in frame[0].f_globals.iteritems(): |