davidp
unread,Jun 8, 2009, 12:20:33 PM6/8/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-support
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.