#9242: Add docstrings and tests for sage/rings/ideal_monoid.py
-------------------------------+--------------------------------------------
Reporter: davidloeffler | Owner: mvngu
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.4.5
Component: doctest | Keywords: docstring, doctest, ideals
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: doctest failure |
-------------------------------+--------------------------------------------
Changes (by AlexGhitza):
* status: needs_review => needs_work
* work_issues: => doctest failure
Comment:
There is a doctest failure in {{{structure/coerce.pyx}}} which is caused
by this patch:
{{{
sage -t -long "devel/sage/sage/structure/coerce.pyx"
**********************************************************************
File
"/mnt/usb1/scratch/ghitza/sage-4.4.4.alpha0-boxen.math.washington.edu-x86_64-Linux/devel/sage/sage/structure/coerce.pyx",
line 357:
sage: cm.exception_stack()
Expected:
[(<class 'sage.structure.coerce_exceptions.CoercionException'>,
CoercionException("BUG: the base_extend method must be defined for 'Monoid
of ideals of Integer Ring' (class '<class
'sage.rings.ideal_monoid.IdealMonoid_c'>')",), <traceback object at ...>),
(<type 'exceptions.TypeError'>, TypeError("no common canonical parent for
objects with parents: 'Rational Field' and 'Finite Field of size 3'",),
<traceback object at ...>)]
Got:
[(<class 'sage.structure.coerce_exceptions.CoercionException'>,
CoercionException(AttributeError("'IdealMonoid_c_with_category' object has
no attribute 'base_extend'",),), <traceback object at 0x1049ea8>), (<type
'exceptions.TypeError'>, TypeError("no common canonical parent for objects
with parents: 'Rational Field' and 'Finite Field of size 3'",), <traceback
object at 0x1049c20>)]
}}}
I don't know what's going on.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9242#comment:2>
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.