#17460: Deprecate moved imports from sage.misc
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: needs_work
Priority: minor | Milestone: sage-6.5
Component: misc | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers: Frédéric Chapoton
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/ticket/17460 | 026b2815a2364acd3a5ed8f4654477b62b1551f1
Dependencies: #10057, #17455, | Stopgaps:
#17458, #17459, #17465 |
-------------------------------------+-------------------------------------
Changes (by vbraun):
* status: positive_review => needs_work
Comment:
{{{
sage -t --long src/sage/matrix/matrix_space.py
**********************************************************************
File "src/sage/matrix/matrix_space.py", line 129, in
sage.matrix.matrix_space.MatrixSpace
Failed example:
MatrixSpace(ZZ,10,2^31)
Expected:
Traceback (most recent call last):
...
ValueError: number of rows and columns must be less than 2^31 (on a
32-bit computer -- use a 64-bit computer for matrices with up to 2^63-1
rows and columns)
Got:
<BLANKLINE>
Traceback (most recent call last):
File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7
/site-packages/sage/doctest/forker.py", line 488, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7
/site-packages/sage/doctest/forker.py", line 850, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.matrix.matrix_space.MatrixSpace[2]>", line 1, in
<module>
MatrixSpace(ZZ,Integer(10),Integer(2)**Integer(31))
File "sage/misc/classcall_metaclass.pyx", line 330, in
sage.misc.classcall_metaclass.ClasscallMetaclass.__call__
(build/cythonized/sage/misc/classcall_metaclass.c:1176)
return cls.classcall(cls, *args, **opts)
File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7
/site-packages/sage/matrix/matrix_space.py", line 228, in __classcall__
cls, base_ring, nrows, ncols, sparse, implementation)
File "sage/misc/cachefunc.pyx", line 1298, in
sage.misc.cachefunc.WeakCachedFunction.__call__
(build/cythonized/sage/misc/cachefunc.c:8050)
w = self.f(*args, **kwds)
File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7
/site-packages/sage/structure/unique_representation.py", line 1021, in
__classcall__
instance = typecall(cls, *args, **options)
File "sage/misc/classcall_metaclass.pyx", line 518, in
sage.misc.classcall_metaclass.typecall
(build/cythonized/sage/misc/classcall_metaclass.c:1603)
res = <object> PyType_Type.tp_call(cls, args, opts)
File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7
/site-packages/sage/matrix/matrix_space.py", line 287, in __init__
raise ValueError("number of rows and columns may be at most %s" %
sys.maxsize)
ValueError: number of rows and columns may be at most 2147483647
**********************************************************************
File "src/sage/matrix/matrix_space.py", line 134, in
sage.matrix.matrix_space.MatrixSpace
Failed example:
MatrixSpace(ZZ,2^31,10)
Expected:
Traceback (most recent call last):
...
ValueError: number of rows and columns must be less than 2^31 (on a
32-bit computer -- use a 64-bit computer for matrices with up to 2^63-1
rows and columns)
Got:
<BLANKLINE>
Traceback (most recent call last):
File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7
/site-packages/sage/doctest/forker.py", line 488, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7
/site-packages/sage/doctest/forker.py", line 850, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.matrix.matrix_space.MatrixSpace[3]>", line 1, in
<module>
MatrixSpace(ZZ,Integer(2)**Integer(31),Integer(10))
File "sage/misc/classcall_metaclass.pyx", line 330, in
sage.misc.classcall_metaclass.ClasscallMetaclass.__call__
(build/cythonized/sage/misc/classcall_metaclass.c:1176)
return cls.classcall(cls, *args, **opts)
File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7
/site-packages/sage/matrix/matrix_space.py", line 228, in __classcall__
cls, base_ring, nrows, ncols, sparse, implementation)
File "sage/misc/cachefunc.pyx", line 1298, in
sage.misc.cachefunc.WeakCachedFunction.__call__
(build/cythonized/sage/misc/cachefunc.c:8050)
w = self.f(*args, **kwds)
File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7
/site-packages/sage/structure/unique_representation.py", line 1021, in
__classcall__
instance = typecall(cls, *args, **options)
File "sage/misc/classcall_metaclass.pyx", line 518, in
sage.misc.classcall_metaclass.typecall
(build/cythonized/sage/misc/classcall_metaclass.c:1603)
res = <object> PyType_Type.tp_call(cls, args, opts)
File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7
/site-packages/sage/matrix/matrix_space.py", line 287, in __init__
raise ValueError("number of rows and columns may be at most %s" %
sys.maxsize)
ValueError: number of rows and columns may be at most 2147483647
**********************************************************************
1 item had failures:
2 of 7 in sage.matrix.matrix_space.MatrixSpace
[261 tests, 2 failures, 2.05 s]
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/17460#comment:22>
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/d/optout.