#9138: Categories for all rings
--------------------------------------------+-------------------------------
Reporter: jbandlow | Owner: nthiery
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.7.2
Component: categories | Keywords: introspection,
categories for rings
Work_issues: fix doctests errors in pbory | Upstream: N/A
Reviewer: | Author: Simon King
Merged: | Dependencies: sage-4.7,
#11268, #11139, #9976, #9944, #11269, #11316
--------------------------------------------+-------------------------------
Changes (by mderickx):
* status: needs_review => needs_work
Comment:
Very very strange. Ok what I did is on sage.math.washington.edu:
I downloaded:
http://boxen.math.washington.edu/home/release/sage-4.7.2.alpha2/sage-4.7.2.alpha2.tar
Extracted the file and did
make build
using environment variables MAKE=make -j20 and
SAGE_SPKG_PARALLEL_BUILD=yes.
After having made this clean build (located in
/mnt/usb1/scratch/mderickx/sage-4.7.2.alpha2) I got:
{{{
mderickx@sage:/mnt/usb1/scratch/mderickx/sage-4.7.2.alpha2$ ./sage -t
--long "devel/sage-main/sage/rings/polynomial/pbori.pyx"
sage -t --long "devel/sage-main/sage/rings/polynomial/pbori.pyx"
[7.0 s]
----------------------------------------------------------------------
All tests passed!
Total time for all tests: 7.0 seconds
}}}
Then I qimported and applied your two patches and did
{{{
mderickx@sage:/mnt/usb1/scratch/mderickx/sage-4.7.2.alpha2/devel/sage$
../../sage -bt --long "devel/sage-main/sage/rings/polynomial/pbori.pyx"
----------------------------------------------------------
sage: Building and installing modified Sage library files.
...whole load of buiding output
sage -t --long "devel/sage-main/sage/rings/polynomial/pbori.pyx"
**********************************************************************
File "/mnt/usb1/scratch/mderickx/sage-4.7.2.alpha2/devel/sage-
main/sage/rings/polynomial/pbori.pyx", line 843:
sage: P(p)
Exception raised:
Traceback (most recent call last):
File "/home/mderickx/.sage/tmp/ncadoctest.py", line 1231, in
run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/mderickx/.sage/tmp/sagedoctest.py", line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/mderickx/.sage/tmp/ncadoctest.py", line 1172, in
run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_10[23]>", line 1, in <module>
P(p)###line 843:
sage: P(p)
File "parent.pyx", line 945, in
sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7108)
File "coerce_maps.pyx", line 82, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:3256)
File "coerce_maps.pyx", line 77, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:3159)
File "pbori.pyx", line 896, in
sage.rings.polynomial.pbori.BooleanPolynomialRing._element_constructor_
(sage/rings/polynomial/pbori.cpp:8488)
IndexError: list index out of range
**********************************************************************
File "/mnt/usb1/scratch/mderickx/sage-4.7.2.alpha2/devel/sage-
main/sage/rings/polynomial/pbori.pyx", line 563:
sage: ZZ['a'].gen() + c
Exception raised:
Traceback (most recent call last):
File "/home/mderickx/.sage/tmp/ncadoctest.py", line 1231, in
run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/mderickx/.sage/tmp/sagedoctest.py", line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/mderickx/.sage/tmp/ncadoctest.py", line 1172, in
run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_8[16]>", line 1, in <module>
ZZ['a'].gen() + c###line 563:
sage: ZZ['a'].gen() + c
File "element.pyx", line 1309, in
sage.structure.element.RingElement.__add__
(sage/structure/element.c:11532)
File "coerce.pyx", line 742, in
sage.structure.coerce.CoercionModel_cache_maps.bin_op
(sage/structure/coerce.c:6577)
File "coerce.pyx", line 856, in
sage.structure.coerce.CoercionModel_cache_maps.canonical_coercion
(sage/structure/coerce.c:7818)
File "coerce_maps.pyx", line 82, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:3256)
File "coerce_maps.pyx", line 77, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:3159)
File "pbori.pyx", line 896, in
sage.rings.polynomial.pbori.BooleanPolynomialRing._element_constructor_
(sage/rings/polynomial/pbori.cpp:8488)
IndexError: list index out of range
**********************************************************************
2 items had failures:
1 of 25 in __main__.example_10
1 of 18 in __main__.example_8
***Test Failed*** 2 failures.
For whitespace errors, see the file
/home/mderickx/.sage//tmp/.doctest_pbori.py
[6.1 s]
----------------------------------------------------------------------
The following tests failed:
sage -t --long "devel/sage-main/sage/rings/polynomial/pbori.pyx"
Total time for all tests: 6.1 seconds
}}}
So I seem to not be able to reproduce your passing the doctest.
Did you also use sage.math. I can give you acces to the created folder on
sage.math so you can fiddle around with it.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9138#comment:91>
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 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.