I am trying to doctest the coding folder with the optional gap_packages.
But it seems to skip the statements without the "# optional" statement. The
result of it is that the optional tests are all failing. Here is an output:
...allations/sage-git [128] ยป sage -t --optional=gap_packages src/sage/
coding
Running doctests with ID 2014-07-13-19-47-19-ba9f5690.
Doctesting 17 files.
sage -t src/sage/coding/binary_code.pyx
[0 tests, 0.01 s]
sage -t src/sage/coding/decoder.py
[0 tests, 0.00 s]
sage -t src/sage/coding/codes_catalog.py
[0 tests, 0.00 s]
sage -t src/sage/coding/code_constructions.py
[0 tests, 0.00 s]
sage -t src/sage/coding/sd_codes.py
[0 tests, 0.00 s]
sage -t src/sage/coding/all.py
[0 tests, 0.00 s]
sage -t src/sage/coding/delsarte_bounds.py
[0 tests, 0.00 s]
sage -t src/sage/coding/linear_code.py
**********************************************************************
File "src/sage/coding/linear_code.py", line 371, in sage.coding.linear_code.
min_wt_vec_gap
Failed example:
sage.coding.linear_code.min_wt_vec_gap(Gstr,7,4,GF(2),algorithm="guava")
# optional - gap_packages (Guava package)
Exception raised:
Traceback (most recent call last):
File
"/home/punarbasu/Installations/sage-git/local/lib/python2.7/site-packages/sage/doctest/forker.py"
, line 480, in _run
self.execute(example, compiled, test.globs)
File
"/home/punarbasu/Installations/sage-git/local/lib/python2.7/site-packages/sage/doctest/forker.py"
, line 839, in execute
exec compiled in globs
File "<doctest sage.coding.linear_code.min_wt_vec_gap[0]>", line 1, in
<module>
sage.coding.linear_code.min_wt_vec_gap(Gstr,Integer(7),Integer(4),GF
(Integer(2)),algorithm="guava") # optional - gap_packages (Guava package)
NameError: name 'Gstr' is not defined
**********************************************************************
This shouldn't fail because 'Gstr' is defined all right in the actual file:
EXAMPLES::
sage: Gstr = "Z(2)*[[1,1,1,0,0,0,0], [1,0,0,1,1,0,0],
[0,1,0,1,0,1,0], [1,1,0,1,0,0,1]]"
sage: sage.coding.linear_code.min_wt_vec_gap(Gstr,7,4,GF(2))
(0, 1, 0, 1, 0, 1, 0)
This output is different but still a minimum weight vector::
sage: sage.coding.linear_code.min_wt_vec_gap(Gstr,7,4,GF(2),
algorithm="guava") # optional - gap_packages (Guava package)
(0, 0, 1, 0, 1, 1, 0)
Also, note that the files preceding "linear_code.py" all report "0 tests",
which doesn't make any sense.
Is there some other argument I must provide with --optional?
--
You received this message because you are subscribed to the Google Groups
"sage-devel" 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-devel.
For more options, visit https://groups.google.com/d/optout.