#15811: Random doctest failure in maxima_abstract.py
------------------------------+------------------------
Reporter: vbraun | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.2
Component: interfaces | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
------------------------------+------------------------
Changes (by vbraun):
* component: PLEASE CHANGE => interfaces
* type: PLEASE CHANGE => defect
Old description:
New description:
This is yet again due to terminal echo showing up in unexpected places.
--
Comment:
Example of failure:
{{{
sage -t --long src/sage/interfaces/maxima_abstract.py
**********************************************************************
File "src/sage/interfaces/maxima_abstract.py", line 2183, in
sage.interfaces.maxima_abstract.MaximaAbstractElementFunction._add_
Failed example:
f+3
Exception raised:
Traceback (most recent call last):
File
"/home/buildbot/build/sage/snapperkob/sage_git/build/local/lib/python2.7
/site-packages/sage/doctest/forker.py", line 480, in _run
self.execute(example, compiled, test.globs)
File
"/home/buildbot/build/sage/snapperkob/sage_git/build/local/lib/python2.7
/site-packages/sage/doctest/forker.py", line 839, in execute
exec compiled in globs
File "<doctest
sage.interfaces.maxima_abstract.MaximaAbstractElementFunction._add_[4]>",
line 1, in <module>
f+Integer(3)
File "element.pyx", line 1539, in
sage.structure.element.RingElement.__add__
(sage/structure/element.c:13873)
File "coerce.pyx", line 782, in
sage.structure.coerce.CoercionModel_cache_maps.bin_op
(sage/structure/coerce.c:7311)
File "coerce.pyx", line 900, in
sage.structure.coerce.CoercionModel_cache_maps.canonical_coercion
(sage/structure/coerce.c:8549)
File "morphism.pyx", line 287, in
sage.categories.morphism.CallMorphism._call_
(sage/categories/morphism.c:4698)
File
"/home/buildbot/build/sage/snapperkob/sage_git/build/local/lib/python2.7
/site-packages/sage/interfaces/interface.py", line 201, in __call__
return self._coerce_from_special_method(x)
File
"/home/buildbot/build/sage/snapperkob/sage_git/build/local/lib/python2.7
/site-packages/sage/interfaces/interface.py", line 227, in
_coerce_from_special_method
return (x.__getattribute__(s))(self)
File "sage_object.pyx", line 603, in
sage.structure.sage_object.SageObject._maxima_
(sage/structure/sage_object.c:6329)
File "sage_object.pyx", line 515, in
sage.structure.sage_object.SageObject._interface_
(sage/structure/sage_object.c:4373)
File
"/home/buildbot/build/sage/snapperkob/sage_git/build/local/lib/python2.7
/site-packages/sage/interfaces/interface.py", line 199, in __call__
return cls(self, x, name=name)
File
"/home/buildbot/build/sage/snapperkob/sage_git/build/local/lib/python2.7
/site-packages/sage/interfaces/maxima.py", line 1127, in __init__
ExpectElement.__init__(self, parent, value, is_name=False,
name=None)
File
"/home/buildbot/build/sage/snapperkob/sage_git/build/local/lib/python2.7
/site-packages/sage/interfaces/expect.py", line 1291, in __init__
self._name = parent._create(value, name=name)
File
"/home/buildbot/build/sage/snapperkob/sage_git/build/local/lib/python2.7
/site-packages/sage/interfaces/interface.py", line 389, in _create
self.set(name, value)
File
"/home/buildbot/build/sage/snapperkob/sage_git/build/local/lib/python2.7
/site-packages/sage/interfaces/maxima.py", line 972, in set
self._eval_line(cmd)
File
"/home/buildbot/build/sage/snapperkob/sage_git/build/local/lib/python2.7
/site-packages/sage/interfaces/maxima.py", line 759, in _eval_line
assert line_echo.strip() == line.strip(), 'mismatch:\n' +
line_echo + line
AssertionError: mismatch:
kill(sage144)$sage225 : 3$
sage225 : 3$
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/15811#comment:1>
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/groups/opt_out.