#6093: [with patch, needs review] module to read ext_rep format of combinatorial
designs
-----------------------------+----------------------------------------------
Reporter: carlohamalainen | Owner: wdj
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.0.1
Component: combinatorics | Keywords:
-----------------------------+----------------------------------------------
Comment(by wdj):
Also, I get the following test failure:
{{{
w...@hera:~/sagefiles/sage-4.0.rc1$ ./sage -t
"devel/sage/sage/combinat/designs/ext_rep.py"
sage -t "devel/sage/sage/combinat/designs/ext_rep.py"
**********************************************************************
File
"/home/wdj/sagefiles/sage-4.0.rc1/devel/sage/sage/combinat/designs/ext_rep.py",
line 464:
sage: file_loc = dump_to_tmpfile("boo")
Exception raised:
Traceback (most recent call last):
File "/home/wdj/sagefiles/sage-4.0.rc1/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/wdj/sagefiles/sage-4.0.rc1/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/wdj/sagefiles/sage-4.0.rc1/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_2[2]>", line 1, in <module>
file_loc = dump_to_tmpfile("boo")###line 464:
sage: file_loc = dump_to_tmpfile("boo")
NameError: name 'dump_to_tmpfile' is not defined
**********************************************************************
File
"/home/wdj/sagefiles/sage-4.0.rc1/devel/sage/sage/combinat/designs/ext_rep.py",
line 465:
sage: os.remove(file_loc)
Exception raised:
Traceback (most recent call last):
File "/home/wdj/sagefiles/sage-4.0.rc1/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/wdj/sagefiles/sage-4.0.rc1/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/wdj/sagefiles/sage-4.0.rc1/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_2[3]>", line 1, in <module>
os.remove(file_loc)###line 465:
sage: os.remove(file_loc)
NameError: name 'file_loc' is not defined
**********************************************************************
File
"/home/wdj/sagefiles/sage-4.0.rc1/devel/sage/sage/combinat/designs/ext_rep.py",
line 481:
sage: check_dtrs_protocols('source', '2.0')
Exception raised:
Traceback (most recent call last):
File "/home/wdj/sagefiles/sage-4.0.rc1/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/wdj/sagefiles/sage-4.0.rc1/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/wdj/sagefiles/sage-4.0.rc1/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_3[2]>", line 1, in <module>
check_dtrs_protocols('source', '2.0')###line 481:
sage: check_dtrs_protocols('source', '2.0')
NameError: name 'check_dtrs_protocols' is not defined
**********************************************************************
File
"/home/wdj/sagefiles/sage-4.0.rc1/devel/sage/sage/combinat/designs/ext_rep.py",
line 482:
sage: check_dtrs_protocols('source', '3.0')
Expected:
Traceback (most recent call last):
...
RuntimeError: Incompatible dtrs_protocols: program: 2.0 source: 3.0
Got:
Traceback (most recent call last):
File "/home/wdj/sagefiles/sage-4.0.rc1/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/wdj/sagefiles/sage-4.0.rc1/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/wdj/sagefiles/sage-4.0.rc1/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_3[3]>", line 1, in <module>
check_dtrs_protocols('source', '3.0')###line 482:
sage: check_dtrs_protocols('source', '3.0')
NameError: name 'check_dtrs_protocols' is not defined
**********************************************************************
2 items had failures:
2 of 4 in __main__.example_2
2 of 4 in __main__.example_3
***Test Failed*** 4 failures.
For whitespace errors, see the file
/home/wdj/sagefiles/sage-4.0.rc1/tmp/.doctest_ext_rep.py
[2.5 s]
exit code: 1024
----------------------------------------------------------------------
The following tests failed:
sage -t "devel/sage/sage/combinat/designs/ext_rep.py"
Total time for all tests: 2.5 seconds
}}}
Does your new patch fix this too?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6093#comment:4>
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
-~----------~----~----~----~------~----~------~--~---