#4416: [with patch, with positive review] Sage 3.2.a2: optional doctest failure
in
sage/rings/arith.py
------------------------------------+------------------------
Reporter: mabshoff | Owner: mabshoff
Type: defect | Status: closed
Priority: major | Milestone: sage-3.2
Component: doctest coverage | Resolution: fixed
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
------------------------------------+------------------------
Changes (by chapoton):
* upstream: => N/A
Old description:
> {{{
> mabshoff@sage:/scratch/mabshoff/release-cycle/sage-3.1.3.final$ ./sage -t
> -long -optional devel/sage/sage/rings/arith.py
> sage -t -long -optional devel/sage/sage/rings/arith.py Traceback
> (most recent call last):
> File "/scratch/mabshoff/release-
> cycle/sage-3.1.3.final/tmp/.doctest_arith.py", line 2453, in <module>
> globs=globals())
> File "/scratch/mabshoff/release-
> cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 1814, in
> testmod
> for test in finder.find(m, name, globs=globs, extraglobs=extraglobs):
> File "/scratch/mabshoff/release-
> cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 839, in find
> self._find(tests, obj, name, module, source_lines, globs, {})
> File "/scratch/mabshoff/release-
> cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 893, in
> _find
> globs, seen)
> File "/scratch/mabshoff/release-
> cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 881, in
> _find
> test = self._get_test(obj, name, module, globs, source_lines)
> File "/scratch/mabshoff/release-
> cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 965, in
> _get_test
> filename, lineno)
> File "/scratch/mabshoff/release-
> cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 594, in
> get_doctest
> return DocTest(self.get_examples(string, name), globs,
> File "/scratch/mabshoff/release-
> cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 608, in
> get_examples
> return [x for x in self.parse(string, name)
> File "/scratch/mabshoff/release-
> cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 570, in
> parse
> self._parse_example(m, name, lineno)
> File "/scratch/mabshoff/release-
> cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 640, in
> _parse_example
> lineno + len(source_lines))
> File "/scratch/mabshoff/release-
> cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 726, in
> _check_prefix
> (lineno+i+1, name, line))
> ValueError: line 51 of the docstring for __main__.example_2 has
> inconsistent leading whitespace: " \\note{If $n>50000$ then algorithm
> = 'gp' is used instead of"
>
> [2.3 s]
> exit code: 1024
> }}}
New description:
{{{
mabshoff@sage:/scratch/mabshoff/release-cycle/sage-3.1.3.final$ ./sage -t
-long -optional devel/sage/sage/rings/arith.py
sage -t -long -optional devel/sage/sage/rings/arith.py Traceback
(most recent call last):
File "/scratch/mabshoff/release-
cycle/sage-3.1.3.final/tmp/.doctest_arith.py", line 2453, in <module>
globs=globals())
File "/scratch/mabshoff/release-
cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 1814, in
testmod
for test in finder.find(m, name, globs=globs, extraglobs=extraglobs):
File "/scratch/mabshoff/release-
cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 839, in find
self._find(tests, obj, name, module, source_lines, globs, {})
File "/scratch/mabshoff/release-
cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 893, in _find
globs, seen)
File "/scratch/mabshoff/release-
cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 881, in _find
test = self._get_test(obj, name, module, globs, source_lines)
File "/scratch/mabshoff/release-
cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 965, in
_get_test
filename, lineno)
File "/scratch/mabshoff/release-
cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 594, in
get_doctest
return DocTest(self.get_examples(string, name), globs,
File "/scratch/mabshoff/release-
cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 608, in
get_examples
return [x for x in self.parse(string, name)
File "/scratch/mabshoff/release-
cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 570, in parse
self._parse_example(m, name, lineno)
File "/scratch/mabshoff/release-
cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 640, in
_parse_example
lineno + len(source_lines))
File "/scratch/mabshoff/release-
cycle/sage-3.1.3.final/local/lib/python2.5/doctest.py", line 726, in
_check_prefix
(lineno+i+1, name, line))
ValueError: line 51 of the docstring for __main__.example_2 has
inconsistent leading whitespace: " \\note{If $n>50000$ then algorithm =
'gp' is used instead of"
[2.3 s]
exit code: 1024
}}}
--
--
Ticket URL: <http://trac.sagemath.org/ticket/4416#comment:4>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.