#16681: Random doctest failures in sage/rings/algebraic_closure_finite_field.py
-------------------------------------------------+-------------------------
Reporter: vbraun | Owner:
Type: defect | Status: closed
Priority: major | Milestone: sage-6.4
Component: number theory | Resolution: fixed
Keywords: random_fail | Merged in:
Authors: Vincent Delecroix | Reviewers: Volker
Report Upstream: N/A | Braun
Branch: | Work issues:
f6dc3562a5b553bebaffc70c64b65ea63466ccae | Commit:
Dependencies: #16682 | Stopgaps:
-------------------------------------------------+-------------------------
Changes (by nthiery):
* commit: f6dc3562a5b553bebaffc70c64b65ea63466ccae =>
Comment:
For the record, I just got this error once, with 6.4.beta 2:
{{{
sage -t src/sage/rings/algebraic_closure_finite_field.py
**********************************************************************
File "src/sage/rings/algebraic_closure_finite_field.py", line 890, in
sage.rings.algebraic_closure_finite_field.AlgebraicClosureFiniteField_generic._roots_univariate_polynomi
al
Failed example:
for _ in xrange(10):
p = R.random_element(degree=randint(2,8))
for r in p.roots(K, multiplicities=False):
assert p(r).is_zero(), "r={} is not a root of
p={}".format(r,p)
Exception raised:
Traceback (most recent call last):
File "/opt/sage-git/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 480, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/opt/sage-git/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 843, in compile_and_execute
exec compiled in globs
File "<doctest
sage.rings.algebraic_closure_finite_field.AlgebraicClosureFiniteField_generic._roots_univariate_polynomial[4]>",
line 4, in <module>
assert p(r).is_zero(), "r={} is not a root of p={}".format(r,p)
AssertionError: r=4*t6^3 + 2*t6^2 + 1 is not a root of p=4*x^7 + 2*x^6
+ 2*x^5 + 3*x^4 + 2*x^3 + 4*x^2 + 4*x
**********************************************************************
1 item had failures:
1 of 6 in
sage.rings.algebraic_closure_finite_field.AlgebraicClosureFiniteField_generic._roots_univariate_polynomial
[175 tests, 1 failure, 5.58 s]
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16681#comment:24>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.