#9003: Doctest failure on Mac OS X 32bit in free_module.py
------------------------+---------------------------------------------------
Reporter: kcrisman | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.4.3
Component: doctest | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Comment(by GeorgSWeber):
Guys, this problem is *by far* worse than I ever thought! I changed the
lines 1124ff in question in "modules/free_module.py" to:
{{{
sage: V = ZZ^7; V
Ambient free module of rank 7 over the principal ideal domain
Integer Ring
sage: W = V.base_extend(QQ)
sage: W._repr_()
'Vector space of dimension 7 over Rational Field'
sage: W
Vector space of dimension 7 over Rational Field
}}}
and this is the one failing doctest I get when running "sage -t -verbose
"devel/sage/sage/modules/free_module.py"":
{{{
Trying:
set_random_seed(0L)
Expecting nothing
ok
Trying:
change_warning_output(sys.stdout)
Expecting nothing
ok
Trying:
V = ZZ**Integer(7); V###line 1124:_sage_ >>> V = ZZ^7; V
Expecting:
Ambient free module of rank 7 over the principal ideal domain Integer
Ring
ok
Trying:
W = V.base_extend(QQ)###line 1126:_sage_ >>> W = V.base_extend(QQ)
Expecting nothing
ok
Trying:
W._repr_()###line 1127:_sage_ >>> W._repr_()
Expecting:
'Vector space of dimension 7 over Rational Field'
ok
Trying:
W###line 1129:_sage_ >>> W
Expecting:
Vector space of dimension 7 over Rational Field
**********************************************************************
File
"/Users/Shared/sage/test/sage-4.4.2/devel/sage/sage/modules/free_module.py",
line 924, in __main__.example_23
Failed example:
W###line 1129:_sage_ >>> W
Expected:
Vector space of dimension 7 over Rational Field
Got:
V
}}}
Unbelievable!
The problem seems to lie within the doctest framework ... does anybody has
experience with that? I think I stumbled once upon a time over temporary
files from doctests, does anyone remember where these are stored?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9003#comment:5>
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.