> On Jul 30, 2017, at 02:10 , Volker Braun <[email protected]> wrote:
>
> I've seen this randomly, too. I don't think its a pickling issue. Its a
> combination of
>
> #23453: adds runtime-check that the parent is not None
> #23204: adds the doctest in fraction_field_FpT.pyx that randomly fails
>
> Though I can't reproduce it. See if you can; if so it would be easy to debug.
I built this via a “git clone” w/o problems on macOS 10.11.6 (Quad-core Core
i7). The test run (‘ptestlong’) failed with this failure (one of the above):
sage -t --long --warn-long 79.7 src/sage/rings/fraction_field_FpT.pyx
If run singly, no failure. Running the tests (‘ptestlong’) again yields the
same failure. The failure is appended below.
Justin
====================================================
sage -t --long --warn-long 80.7 src/sage/rings/fraction_field_FpT.pyx
**********************************************************************
File "src/sage/rings/fraction_field_FpT.pyx", line 1207, in
sage.rings.fraction_field_FpT.FpT_Polyring_section
Failed example:
fprime = loads(dumps(f))
Exception raised:
Traceback (most recent call last):
File
"/Users/Sage/sage-8.1.beta0/local/lib/python2.7/site-packages/sage/doctest/forker.py",
line 509, in _run
self.compile_and_execute(example, compiler, test.globs)
File
"/Users/Sage/sage-8.1.beta0/local/lib/python2.7/site-packages/sage/doctest/forker.py",
line 872, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.rings.fraction_field_FpT.FpT_Polyring_section[4]>",
line 1, in <module>
fprime = loads(dumps(f))
File "sage/structure/sage_object.pyx", line 1491, in
sage.structure.sage_object.loads
(/Users/Sage/sage-8.1.beta0/src/build/cythonized/sage/structure/sage_object.c:16048)
return unpickler.load()
File "sage/categories/map.pyx", line 48, in
sage.categories.map.unpickle_map
(/Users/Sage/sage-8.1.beta0/src/build/cythonized/sage/categories/map.c:2916)
mor._set_parent(parent)
File "sage/structure/element.pyx", line 417, in
sage.structure.element.Element._set_parent
(/Users/Sage/sage-8.1.beta0/src/build/cythonized/sage/structure/element.c:4223)
self._parent = <Parent?>parent
TypeError: ('Cannot convert NoneType to sage.structure.parent.Parent',
<built-in function unpickle_map>, (<type
'sage.rings.fraction_field_FpT.Polyring_FpT_coerce'>, None, {},
{'_is_coercion': True, '_domain': Univariate Polynomial Ring in t over Finite
Field of size 5, '_repr_type_str': None, '_codomain': Fraction Field of
Univariate Polynomial Ring in t over Finite Field of size 5, '_lift': None,
'p': 5}))
**********************************************************************
File "src/sage/rings/fraction_field_FpT.pyx", line 1208, in
sage.rings.fraction_field_FpT.FpT_Polyring_section
Failed example:
fprime == f
Exception raised:
Traceback (most recent call last):
File
"/Users/Sage/sage-8.1.beta0/local/lib/python2.7/site-packages/sage/doctest/forker.py",
line 509, in _run
self.compile_and_execute(example, compiler, test.globs)
File
"/Users/Sage/sage-8.1.beta0/local/lib/python2.7/site-packages/sage/doctest/forker.py",
line 872, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.rings.fraction_field_FpT.FpT_Polyring_section[5]>",
line 1, in <module>
fprime == f
NameError: name 'fprime' is not defined
**********************************************************************
File "src/sage/rings/fraction_field_FpT.pyx", line 1211, in
sage.rings.fraction_field_FpT.FpT_Polyring_section
Failed example:
fprime(1+t) == f(1+t)
Exception raised:
Traceback (most recent call last):
File
"/Users/Sage/sage-8.1.beta0/local/lib/python2.7/site-packages/sage/doctest/forker.py",
line 509, in _run
self.compile_and_execute(example, compiler, test.globs)
File
"/Users/Sage/sage-8.1.beta0/local/lib/python2.7/site-packages/sage/doctest/forker.py",
line 872, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.rings.fraction_field_FpT.FpT_Polyring_section[6]>",
line 1, in <module>
fprime(Integer(1)+t) == f(Integer(1)+t)
NameError: name 'fprime' is not defined
**********************************************************************
1 item had failures:
3 of 9 in sage.rings.fraction_field_FpT.FpT_Polyring_section
[365 tests, 3 failures, 1.02 s]
====================================================
--
Justin C. Walker
Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
--
Build a man a fire and he'll be warm
for a night.
Set a man on fire and he'll be warm
for the rest of his life.
--
You received this message because you are subscribed to the Google Groups
"sage-release" 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-release.
For more options, visit https://groups.google.com/d/optout.