#20525: failing optional doctests
---------------------------------+------------------------
Reporter: vdelecroix | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-7.2
Component: documentation | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
---------------------------------+------------------------
Changes (by klee):
* component: packages: optional => documentation
Old description:
> Since #20182 there are some failing doctests related to optional packages
>
> {{{
> sage -t --long src/sage/tests/gap_packages.py
> **********************************************************************
> File "src/sage/tests/gap_packages.py", line 8, in sage.tests.gap_packages
> Failed example:
> test_packages(pkgs, only_failures=True) # optional - gap_packages
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 496, in _run
> self.compile_and_execute(example, compiler, test.globs)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest sage.tests.gap_packages[2]>", line 1, in <module>
> test_packages(pkgs, only_failures=True) # optional -
> gap_packages
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/tests/gap_packages.py", line 77, in test_packages
> output = libgap.eval('LoadPackage("{0}")'.format(pkg))
> File "sage/libs/gap/libgap.pyx", line 431, in
> sage.libs.gap.libgap.Gap.eval
> (build/cythonized/sage/libs/gap/libgap.c:4183)
> return make_any_gap_element(self, gap_eval(gap_command))
> File "sage/libs/gap/util.pyx", line 288, in
> sage.libs.gap.util.gap_eval (build/cythonized/sage/libs/gap/util.c:4947)
> raise ValueError('libGAP: '+str(msg).strip())
> ValueError: libGAP: Error, <opr> is not an operation
> **********************************************************************
> File "src/sage/tests/gap_packages.py", line 47, in
> sage.tests.gap_packages.test_packages
> Failed example:
> test_packages(['GAPDoc'])
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 496, in _run
> self.compile_and_execute(example, compiler, test.globs)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest sage.tests.gap_packages.test_packages[1]>", line 1,
> in <module>
> test_packages(['GAPDoc'])
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/tests/gap_packages.py", line 77, in test_packages
> output = libgap.eval('LoadPackage("{0}")'.format(pkg))
> File "sage/libs/gap/libgap.pyx", line 431, in
> sage.libs.gap.libgap.Gap.eval
> (build/cythonized/sage/libs/gap/libgap.c:4183)
> return make_any_gap_element(self, gap_eval(gap_command))
> File "sage/libs/gap/util.pyx", line 288, in
> sage.libs.gap.util.gap_eval (build/cythonized/sage/libs/gap/util.c:4947)
> raise ValueError('libGAP: '+str(msg).strip())
> ValueError: libGAP:
> **********************************************************************
> File "src/sage/tests/gap_packages.py", line 54, in
> sage.tests.gap_packages.test_packages
> Failed example:
> pkgs = all_installed_packages()
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 496, in _run
> self.compile_and_execute(example, compiler, test.globs)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest sage.tests.gap_packages.test_packages[2]>", line 1,
> in <module>
> pkgs = all_installed_packages()
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/tests/gap_packages.py", line 109, in all_installed_packages
> for path in libgap.eval('GAP_ROOT_PATHS').sage():
> File "sage/libs/gap/libgap.pyx", line 431, in
> sage.libs.gap.libgap.Gap.eval
> (build/cythonized/sage/libs/gap/libgap.c:4183)
> return make_any_gap_element(self, gap_eval(gap_command))
> File "sage/libs/gap/util.pyx", line 288, in
> sage.libs.gap.util.gap_eval (build/cythonized/sage/libs/gap/util.c:4947)
> raise ValueError('libGAP: '+str(msg).strip())
> ValueError: libGAP:
> **********************************************************************
> File "src/sage/tests/gap_packages.py", line 55, in
> sage.tests.gap_packages.test_packages
> Failed example:
> test_packages(pkgs) # random output
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 496, in _run
> self.compile_and_execute(example, compiler, test.globs)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest sage.tests.gap_packages.test_packages[3]>", line 1,
> in <module>
> test_packages(pkgs) # random output
> NameError: name 'pkgs' is not defined
> **********************************************************************
> File "src/sage/tests/gap_packages.py", line 105, in
> sage.tests.gap_packages.all_installed_packages
> Failed example:
> all_installed_packages()
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 496, in _run
> self.compile_and_execute(example, compiler, test.globs)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest sage.tests.gap_packages.all_installed_packages[1]>",
> line 1, in <module>
> all_installed_packages()
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/tests/gap_packages.py", line 109, in all_installed_packages
> for path in libgap.eval('GAP_ROOT_PATHS').sage():
> File "sage/libs/gap/libgap.pyx", line 431, in
> sage.libs.gap.libgap.Gap.eval
> (build/cythonized/sage/libs/gap/libgap.c:4183)
> return make_any_gap_element(self, gap_eval(gap_command))
> File "sage/libs/gap/util.pyx", line 288, in
> sage.libs.gap.util.gap_eval (build/cythonized/sage/libs/gap/util.c:4947)
> raise ValueError('libGAP: '+str(msg).strip())
> ValueError: libGAP:
> **********************************************************************
> 3 items had failures:
> 1 of 4 in sage.tests.gap_packages
> 1 of 3 in sage.tests.gap_packages.all_installed_packages
> 3 of 5 in sage.tests.gap_packages.test_packages
> [9 tests, 5 failures, 4.49 s]
> sage -t --long src/sage/coding/linear_code.py
> **********************************************************************
> File "src/sage/coding/linear_code.py", line 3284, in
> sage.coding.linear_code.AbstractLinearCode.spectrum
> Failed example:
> C.spectrum(algorithm="leon") # optional - gap_packages (Guava
> package)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 496, in _run
> self.compile_and_execute(example, compiler, test.globs)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest
> sage.coding.linear_code.AbstractLinearCode.spectrum[8]>", line 1, in
> <module>
> C.spectrum(algorithm="leon") # optional - gap_packages (Guava
> package)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/coding/linear_code.py", line 3328, in spectrum
> lines = subprocess.check_output([os.path.join(guava_bin_dir,
> 'wtdist'), input])
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 566, in check_output
> process = Popen(stdout=PIPE, *popenargs, **kwargs)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 710, in __init__
> errread, errwrite)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 1335, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
> **********************************************************************
> File "src/sage/coding/linear_code.py", line 3292, in
> sage.coding.linear_code.AbstractLinearCode.spectrum
> Failed example:
> C.spectrum() == C.spectrum(algorithm="leon") # optional -
> gap_packages (Guava package)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 496, in _run
> self.compile_and_execute(example, compiler, test.globs)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest
> sage.coding.linear_code.AbstractLinearCode.spectrum[12]>", line 1, in
> <module>
> C.spectrum() == C.spectrum(algorithm="leon") # optional -
> gap_packages (Guava package)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/coding/linear_code.py", line 3328, in spectrum
> lines = subprocess.check_output([os.path.join(guava_bin_dir,
> 'wtdist'), input])
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 566, in check_output
> process = Popen(stdout=PIPE, *popenargs, **kwargs)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 710, in __init__
> errread, errwrite)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 1335, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
> **********************************************************************
> File "src/sage/coding/linear_code.py", line 3296, in
> sage.coding.linear_code.AbstractLinearCode.spectrum
> Failed example:
> C.spectrum() == C.spectrum(algorithm="leon") # optional -
> gap_packages (Guava package)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 496, in _run
> self.compile_and_execute(example, compiler, test.globs)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest
> sage.coding.linear_code.AbstractLinearCode.spectrum[14]>", line 1, in
> <module>
> C.spectrum() == C.spectrum(algorithm="leon") # optional -
> gap_packages (Guava package)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/coding/linear_code.py", line 3328, in spectrum
> lines = subprocess.check_output([os.path.join(guava_bin_dir,
> 'wtdist'), input])
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 566, in check_output
> process = Popen(stdout=PIPE, *popenargs, **kwargs)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 710, in __init__
> errread, errwrite)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 1335, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
> **********************************************************************
> File "src/sage/coding/linear_code.py", line 3300, in
> sage.coding.linear_code.AbstractLinearCode.spectrum
> Failed example:
> C.spectrum() == C.spectrum(algorithm="leon") # optional -
> gap_packages (Guava package)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 496, in _run
> self.compile_and_execute(example, compiler, test.globs)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest
> sage.coding.linear_code.AbstractLinearCode.spectrum[16]>", line 1, in
> <module>
> C.spectrum() == C.spectrum(algorithm="leon") # optional -
> gap_packages (Guava package)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/coding/linear_code.py", line 3328, in spectrum
> lines = subprocess.check_output([os.path.join(guava_bin_dir,
> 'wtdist'), input])
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 566, in check_output
> process = Popen(stdout=PIPE, *popenargs, **kwargs)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 710, in __init__
> errread, errwrite)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 1335, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
> **********************************************************************
> 1 item had failures:
> 4 of 18 in sage.coding.linear_code.AbstractLinearCode.spectrum
> [634 tests, 4 failures, 26.04 s]
> ----------------------------------------------------------------------
> sage -t --long src/sage/tests/gap_packages.py # 5 doctests failed
> sage -t --long src/sage/coding/linear_code.py # 4 doctests failed
> ----------------------------------------------------------------------
> }}}
New description:
Since #20182 there are some failing doctests related to optional packages
- `coding/linear_code.py`: related to Guava (gap package) (see
[http://trac.sagemath.org/attachment/ticket/20525/failing_doctests-
librae.log failing_doctests-librae.log])
- `tests/gap_packages.py`: related to gap packages (see
[http://trac.sagemath.org/attachment/ticket/20525/failing_doctests-
librae.log failing_doctests-librae.log])
--
Comment:
Automatic testing of all installed optional packages was introduced in
#18558
--
Ticket URL: <http://trac.sagemath.org/ticket/20525#comment:11>
Sage <http://www.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 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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.