#10108: Calling mwrank(-10) hangs Sage, but uses very little CPU time
-------------------------------+--------------------------------------------
Reporter: drkirkby | Owner: cremona
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.6.1
Component: elliptic curves | Keywords: mwrank
Author: John Cremona | Upstream: N/A
Reviewer: Mike Hansen | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Changes (by jdemeyer):
* status: positive_review => needs_work
Comment:
This patch gives trouble for me when merging it as part of a potential
sage-4.6.1.alpha0. For some reason I cannot explain, I get the following
error when running {{{sage -t devel/sage/sage/interfaces/mwrank.py}}}:
{{{
sage -t "devel/sage/sage/interfaces/mwrank.py"
**********************************************************************
File
"/mnt/usb1/scratch/jdemeyer/sage-4.6.1.alpha0-x86_64-Linux/devel/sage/sage/interfaces/mwrank.py",
line 111:
sage: mwrank([0,-1,1,0,0])
Exception raised:
Traceback (most recent call last):
File
"/mnt/usb1/scratch/jdemeyer/sage-4.6.1.alpha0-x86_64-Linux/local/bin/ncadoctest.py",
line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/mnt/usb1/scratch/jdemeyer/sage-4.6.1.alpha0-x86_64-Linux/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/mnt/usb1/scratch/jdemeyer/sage-4.6.1.alpha0-x86_64-Linux/local/bin/ncadoctest.py",
line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_4[3]>", line 1, in <module>
mwrank([Integer(0),-Integer(1),Integer(1),Integer(0),Integer(0)])###line
111:
sage: mwrank([0,-1,1,0,0])
File
"/mnt/usb1/scratch/jdemeyer/sage-4.6.1.alpha0-x86_64-Linux/local/lib/python
/site-packages/sage/interfaces/mwrank.py", line 139, in __call__
raise ValueError, 'Invalid input (%s) to mwrank'%cmd
ValueError: Invalid input ([0, -1, 1, 0, 0]) to mwrank
**********************************************************************
}}}
What is strange is that simply doing
{{{
sage: mwrank([0,-1,1,0,0])
}}}
in a "real" Sage session works. So it works in Sage, but not in a
doctest. I will need to investigate further.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10108#comment:10>
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.