#6315: optional doctest failure -- caused by mistakes in lectures on number
theory
rst book
---------------------------------+------------------------------------------
Reporter: was | Owner: tbd
Type: defect | Status: positive_review
Priority: major | Milestone: sage-4.7.2
Component: optional packages | Keywords: sd32
Work_issues: | Upstream: N/A
Reviewer: Marco Streng | Author: Mariah Lenox, William Stein
Merged: | Dependencies:
---------------------------------+------------------------------------------
Description changed by leif:
Old description:
> {{{
> sage -t -long --optional devel/sage/doc/en/bordeaux_2008/birds_other.rst
> **********************************************************************
> File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
> main/doc/en/bordeaux_2008/birds_other.rst", line 243:
> sage: magma.eval(s) #optional - magma
> Exception raised:
> Traceback (most recent call last):
> File
> "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
> 1231, in run_one_test
> self.run_one_example(test, example, filename, compileflags)
> File
> "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line
> 38, in run_one_example
> OrigDocTestRunner.run_one_example(self, test, example, filename,
> compileflags)
> File
> "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
> 1172, in run_one_example
> compileflags, 1) in test.globs
> File "<doctest __main__.example_6[12]>", line 1, in <module>
> magma.eval(s) #optional - magma###line 243:
> sage: magma.eval(s) #optional - magma
> File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
> /site-packages/sage/interfaces/magma.py", line 471, in eval
> raise RuntimeError, "Error evaluating Magma
> code.\nIN:%s\nOUT:%s"%(x, ans)
> RuntimeError: Error evaluating Magma code.
> IN:time v := [_sage_[3] * _sage_[4] for _ in [1..10^5]];
> OUT:
> >> time v := [_sage_[3] * _sage_[4] for _ in [1..10^5]];
> ^
> User error: bad syntax
> **********************************************************************
> File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
> main/doc/en/bordeaux_2008/birds_other.rst", line 265:
> sage: magma.eval(s) #optional - magma
> Expected:
> 'Time: 1.480'
> Got:
> 'Time: 0.210'
> **********************************************************************
> 2 items had failures:
> 1 of 14 in __main__.example_6
> 1 of 9 in __main__.example_7
> ***Test Failed*** 2 failures.
> For whitespace errors, see the file
> /home/wstein/build/sage-4.0.2.alpha3/tmp/.doctest_birds_other.py
> }}}
New description:
{{{
sage -t -long --optional devel/sage/doc/en/bordeaux_2008/birds_other.rst
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
main/doc/en/bordeaux_2008/birds_other.rst", line 243:
sage: magma.eval(s) #optional - magma
Exception raised:
Traceback (most recent call last):
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_6[12]>", line 1, in <module>
magma.eval(s) #optional - magma###line 243:
sage: magma.eval(s) #optional - magma
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/magma.py", line 471, in eval
raise RuntimeError, "Error evaluating Magma
code.\nIN:%s\nOUT:%s"%(x, ans)
RuntimeError: Error evaluating Magma code.
IN:time v := [_sage_[3] * _sage_[4] for _ in [1..10^5]];
OUT:
>> time v := [_sage_[3] * _sage_[4] for _ in [1..10^5]];
^
User error: bad syntax
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
main/doc/en/bordeaux_2008/birds_other.rst", line 265:
sage: magma.eval(s) #optional - magma
Expected:
'Time: 1.480'
Got:
'Time: 0.210'
**********************************************************************
2 items had failures:
1 of 14 in __main__.example_6
1 of 9 in __main__.example_7
***Test Failed*** 2 failures.
For whitespace errors, see the file
/home/wstein/build/sage-4.0.2.alpha3/tmp/.doctest_birds_other.py
}}}
----
Apply
1. [attachment:trac_6315.patch]
1. [attachment:trac_6315-part2.patch]
to the Sage library.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6315#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
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.