#5764: [with patch, needs work] improve doctest coverage for sageinspect.py
------------------------+---------------------------------------------------
Reporter: jhpalmieri | Owner: jhpalmieri
Type: defect | Status: new
Priority: minor | Milestone: sage-3.4.1
Component: doctest | Keywords:
------------------------+---------------------------------------------------
Comment(by was):
I thought this already got dealt with. Anyways, right now doctests fail
on the sagedoc.py file (and no others).
{{{
sage -t devel/sage/sage/misc/sagedoc.py
**********************************************************************
File "/scratch/wstein/build/sage-3.4.1.rc2-ref2/devel/sage-
main/sage/misc/sagedoc.py", line 366:
sage: format_search_as_html('Source',
'algebras/steenrod_algebra_element.py: an antihomomorphism: if we
call the antipode `c`, then', 'antipode antihomomorphism')
Exception raised:
Traceback (most recent call last):
File "/scratch/wstein/build/sage-3.4.1.rc2/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/scratch/wstein/build/sage-3.4.1.rc2/local/bin/sagedoctest.py", line 38,
in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/scratch/wstein/build/sage-3.4.1.rc2/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_7[2]>", line 1, in <module>
format_search_as_html('Source',
'algebras/steenrod_algebra_element.py: an antihomomorphism: if we
call the antipode `c`, then', 'antipode antihomomorphism')###line 366:
sage: format_search_as_html('Source',
'algebras/steenrod_algebra_element.py: an antihomomorphism: if we
call the antipode `c`, then', 'antipode antihomomorphism')
NameError: name 'format_search_as_html' is not defined
**********************************************************************
File "/scratch/wstein/build/sage-3.4.1.rc2-ref2/devel/sage-
main/sage/misc/sagedoc.py", line 368:
sage: format_search_as_html('Other',
'html/en/reference/sage/algebras/steenrod_algebra_element.html:an
antihomomorphism: if we call the antipode <span class="math">c</span>,
then', 'antipode antihomomorphism')
Exception raised:
Traceback (most recent call last):
File "/scratch/wstein/build/sage-3.4.1.rc2/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/scratch/wstein/build/sage-3.4.1.rc2/local/bin/sagedoctest.py", line 38,
in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/scratch/wstein/build/sage-3.4.1.rc2/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_7[3]>", line 1, in <module>
format_search_as_html('Other',
'html/en/reference/sage/algebras/steenrod_algebra_element.html:an
antihomomorphism: if we call the antipode <span class="math">c</span>,
then', 'antipode antihomomorphism')###line 368:
sage: format_search_as_html('Other',
'html/en/reference/sage/algebras/steenrod_algebra_element.html:an
antihomomorphism: if we call the antipode <span class="math">c</span>,
then', 'antipode antihomomorphism')
NameError: name 'format_search_as_html' is not defined
html/en/tutorial/tour_polynomial.html:<p>This creates a polynomial ring
and tells Sage to use (the string)
**********************************************************************
1 items had failures:
2 of 4 in __main__.example_7
***Test Failed*** 2 failures.
For whitespace errors, see the file
/scratch/wstein/build/sage-3.4.1.rc2-ref2/tmp/.doctest_sagedoc.py
[24.9 s]
sage -t devel/sage/sage/rings/tests.py
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5764#comment:1>
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
-~----------~----~----~----~------~----~------~--~---