#5806: failing test "devel/sage/sage/misc/sagedoc.py"
--------------------+-------------------------------------------------------
Reporter: jsp | Owner: cwitty
Type: defect | Status: new
Priority: major | Milestone: sage-3.4.1
Component: misc | Keywords:
--------------------+-------------------------------------------------------
Comment(by ddrake):
For anyone else who wanders in here, we're talking about 3.4.1.rc3.
I'm also seeing a failure in sagedoc.py, but it's a different failure.
This is with Ubuntu 8.10 amd64, and happens every time:
{{{
sage -t -long "devel/sage/sage/misc/sagedoc.py"
**********************************************************************
File "/var/tmp/sage-3.4.1.rc/devel/sage/sage/misc/sagedoc.py", line 480:
sage: s = my_getsource(identity_matrix, True)
Expected nothing
Got:
Error getting source: could not get source code
**********************************************************************
File "/var/tmp/sage-3.4.1.rc/devel/sage/sage/misc/sagedoc.py", line 481:
sage: s[:19]
Exception raised:
Traceback (most recent call last):
File "/var/tmp/sage-3.4.1.rc2/local/bin/ncadoctest.py", line 1231,
in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/var/tmp/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 "/var/tmp/sage-3.4.1.rc2/local/bin/ncadoctest.py", line 1172,
in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_10[4]>", line 1, in <module>
s[:Integer(19)]###line 481:
sage: s[:19]
TypeError: 'NoneType' object is unsubscriptable
**********************************************************************
File "/var/tmp/sage-3.4.1.rc/devel/sage/sage/misc/sagedoc.py", line 238:
sage: format_src('<<<Sqsage:')[5:15]
Expected:
'Sq(*nums):'
Got:
Error getting source: could not get source code
<function Sq at 0x25d72a8>
''
html/en/tutorial/tour_polynomial.html:<p>This creates a polynomial ring
and tells Sage to use (the string)
**********************************************************************
2 items had failures:
2 of 5 in __main__.example_10
1 of 5 in __main__.example_4
***Test Failed*** 3 failures.
For whitespace errors, see the file
/var/tmp/sage-3.4.1.rc/tmp/.doctest_sagedoc.py
[16.4 s]
exit code: 1024
----------------------------------------------------------------------
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5806#comment:2>
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
-~----------~----~----~----~------~----~------~--~---