#6320: optional doctest failure -- combinat crystal code
-------------------------------+--------------------------------------------
Reporter: was | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.0.3
Component: optional packages | Keywords:
Reviewer: | Author:
Merged: |
-------------------------------+--------------------------------------------
I have dot2tex installed but this doctest in combinat still fails:
{{{
wst...@sage:~/build/sage-4.0.2.alpha3$ which dot2tex
/usr/bin/dot2tex
wst...@sage:~/build/sage-4.0.2.alpha3$ ./sage -t -long --optional
devel/sage/sage/combinat/crystals/crystals.py
sage -t -long --optional "devel/sage/sage/combinat/crystals/crystals.py"
**********************************************************************
File
"/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage/sage/combinat/crystals/crystals.py",
line 344:
sage: C.latex_file('/tmp/test.tex') #optional requires dot2tex
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_10[3]>", line 1, in <module>
C.latex_file('/tmp/test.tex') #optional requires dot2tex###line
344:
sage: C.latex_file('/tmp/test.tex') #optional requires dot2tex
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/combinat/crystals/crystals.py", line 363, in
latex_file
f.write(header + self.latex() + footer)
TypeError: cannot concatenate 'str' and 'NoneType' objects
**********************************************************************
File
"/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage/sage/combinat/crystals/crystals.py",
line 422:
sage: C.latex() #optional requires dot2tex
Expected nothing
Got:
dot2tex not available. Install after running 'sage -sh'
**********************************************************************
2 items had failures:
1 of 4 in __main__.example_10
1 of 4 in __main__.example_13
***Test Failed*** 2 failures.
For whitespace errors, see the file
/scratch/wstein/build/sage-4.0.2.alpha3/tmp/.doctest_crystals.py
[7.2 s]
exit code: 1024
----------------------------------------------------------------------
The following tests failed:
sage -t -long --optional
"devel/sage/sage/combinat/crystals/crystals.py"
Total time for all tests: 7.2 seconds
wst...@sage:~/build/sage-4.0.2.alpha3$
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6320>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---