#10138: Doctest failure in trace.py on OS X 10.6 Intel
-----------------------+----------------------------------------------------
Reporter: mpatel | Owner: mvngu
Type: defect | Status: new
Priority: major | Milestone: sage-4.6
Component: doctest | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------+----------------------------------------------------
With a 64-bit build (`export SAGE64=yes`) of Sage 4.6.alpha3 on bsd.math
(OS X 10.6 i386), I get this doctest failure:
{{{
#!python
$ ./sage -t -long -force_lib devel/sage/sage/misc/trace.py
Detected SAGE64 flag
Building Sage on OS X in 64-bit mode
sage -t -long -force_lib "devel/sage/sage/misc/trace.py"
**********************************************************************
File
"/Users/buildbot/build/sage/bsd-2/bsd_64_full/build/sage-4.6.alpha3/devel/sage/sage/misc/trace.py",
line 61:
sage: print s.before[s.before.find('-'):]
Expected:
---...
ipdb> c
2 * 5
Got:
-bit mode
Creating SAGE_LOCAL/lib/sage-64.txt since it does not exist
Detected SAGE64 flag
Building Sage on OS X in 64-bit mode
----------------------------------------------------------------------
| Sage Version 4.6.alpha3, Release Date: 2010-10-08 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
**********************************************************************
* *
* Warning: this is a prerelease version, and it may be unstable. *
* *
**********************************************************************
trace('print factor(10)'); print 3+97
s
c
sage: trace('print factor(10)'); print 3+97
> <string>(1)<module>()
ipdb> s
--Call--
>
/Users/buildbot/build/sage/bsd-2/bsd_64_full/build/sage-4.6.alpha3/local/lib/python2.6
/site-packages/sage/rings/arith.py(2153)factor()
2152
-> 2153 def factor(n, proof=None, int_=False, algorithm='pari',
verbose=0, **kwds):
2154 """
ipdb> c
2 * 5
<BLANKLINE>
}}}
I think we can fix this by using `-...` instead of `---...` in the
"Expected" output, but I'm not sure about why
{{{
-bit mode
Creating SAGE_LOCAL/lib/sage-64.txt since it does not exist
}}}
appears in the "Got" output but not with `./sage`, say.
Ticket #9446 is about a different problem in `trace.py`.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10138>
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.