#17852: Cleanup in rings.arith and rings.integer
-------------------------------------+-------------------------------------
Reporter: vdelecroix | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.6
Component: basic arithmetic | Resolution:
Keywords: | Merged in:
Authors: Vincent Delecroix | Reviewers: Jeroen Demeyer
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vdelecroix/17852 | 4f4cdad1ae7953971c1e21993f26ece509034377
Dependencies: #16878 | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vbraun):
* status: positive_review => needs_work
Comment:
{{{
sage -t --long --warn-long 48.0 src/sage/rings/arith.py
**********************************************************************
File "src/sage/rings/arith.py", line 2608, in
sage.rings.arith.is_squarefree
Failed example:
is_squarefree(a - 3)
Expected:
Traceback (most recent call last):
...
ValueError: Non-principal ideal in factorization
Got:
<BLANKLINE>
Traceback (most recent call last):
File "/mnt/disk/home/release/Sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 496, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/mnt/disk/home/release/Sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.rings.arith.is_squarefree[13]>", line 1, in
<module>
is_squarefree(a - Integer(3))
File "/mnt/disk/home/release/Sage/local/lib/python2.7/site-
packages/sage/rings/arith.py", line 2623, in is_squarefree
return all(r[1] == 1 for r in factor(n))
File "/mnt/disk/home/release/Sage/local/lib/python2.7/site-
packages/sage/rings/arith.py", line 2391, in factor
return n.factor(**kwds)
File "sage/rings/number_field/number_field_element.pyx", line 1485,
in sage.rings.number_field.number_field_element.NumberFieldElement.factor
(build/cythonized/sage/rings/number_field/number_field_element.cpp:15877)
raise ArithmeticError("non-principal ideal in factorization")
ArithmeticError: non-principal ideal in factorization
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/17852#comment:95>
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.