On the file test.py, consisting of
"""
EXAMPLES::
sage: gcd(4,6);
sage: a = {1:'a',
2:'b'}
"""
running sage -t produces two error messages (see below). Is it true
that sage -t does not recognize semicolons and does not parse line
breaks correctly? (Cutting and pasting the code in the examples into
sage produces no errors.)
Thanks,
Dave
| Sage Version 4.0.alpha0, Release Date: 2009-05-15
sage -t "test.py"
**********************************************************************
File "/home/davidp/math/sandpile/sage/sage-sandpile1.4/test.py", line
4:
sage: gcd(4,6);
Expected nothing
Got:
2
**********************************************************************
File "/home/davidp/math/sandpile/sage/sage-sandpile1.4/test.py", line
5:
e: a = {1:'a',
Exception raised:
Traceback (most recent call last):
File "/home/davidp/download/sage-devel/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/davidp/download/sage-devel/local/bin/
sagedoctest.py", line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example,
filename, compileflags)
File "/home/davidp/download/sage-devel/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_0[3]>", line 1
a = {Integer(1):'a',###line 5:
e: a = {1:'a',
^
SyntaxError: unexpected EOF while parsing
**********************************************************************
1 items had failures:
2 of 4 in __main__.example_0
***Test Failed*** 2 failures.
--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---