#4072: Fix issue in trait_names in the sage0 interface
------------------------+---------------------------------------------------
Reporter: mhansen | Owner: was
Type: defect | Status: new
Priority: minor | Milestone: sage-3.1.2
Component: interfaces | Keywords:
------------------------+---------------------------------------------------
{{{
File "/Users/mhansen/sage-3.1.2.rc0/tmp/sage0.py", line 164:
sage: t = sage0.trait_names()
Exception raised:
Traceback (most recent call last):
File "/Users/mhansen/sage-3.1.2.rc0/local/lib/python2.5/doctest.py",
line 1228, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_4[2]>", line 1, in <module>
t = sage0.trait_names()###line 164:
sage: t = sage0.trait_names()
File "/Users/mhansen/sage-3.1.2.rc0/local/lib/python2.5/site-
packages/sage/interfaces/sage0.py", line 171, in trait_names
return eval(self.eval('globals().keys()'))
File "<string>", line 408
'cosh',
^
SyntaxError: invalid syntax
**********************************************************************
File "/Users/mhansen/sage-3.1.2.rc0/tmp/sage0.py", line 165:
sage: len(t) > 100
Exception raised:
Traceback (most recent call last):
File "/Users/mhansen/sage-3.1.2.rc0/local/lib/python2.5/doctest.py",
line 1228, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_4[3]>", line 1, in <module>
len(t) > Integer(100)###line 165:
sage: len(t) > 100
NameError: name 't' is not defined
**********************************************************************
File "/Users/mhansen/sage-3.1.2.rc0/tmp/sage0.py", line 167:
sage: 'gcd' in t
Exception raised:
Traceback (most recent call last):
File "/Users/mhansen/sage-3.1.2.rc0/local/lib/python2.5/doctest.py",
line 1228, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_4[4]>", line 1, in <module>
'gcd' in t###line 167:
sage: 'gcd' in t
NameError: name 't' is not defined
**********************************************************************
1 items had failures:
3 of 5 in __main__.example_4
***Test Failed*** 3 failures.
For whitespace errors, see the file
/Users/mhansen/sage-3.1.2.rc0/tmp/.doctest_sage0.py
[81.0 s]
exit code: 1024
----------------------------------------------------------------------
The following tests failed:
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4072>
SAGE <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---