#6521: [with patch, needs work] replace .copy() with .__copy__() in
matrix/matrix0.pyx
----------------------------------------------+-----------------------------
Reporter: AlexGhitza | Owner: was
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.1.2
Component: user interface | Keywords:
Reviewer: Jason Grout, Karl-Dieter Crisman | Author: Karl-Dieter
Crisman, Jason Grout
Merged: |
----------------------------------------------+-----------------------------
Comment(by mvngu):
I got the following doctest failures. Except for the twist.py related
failure, these are all a direct consequence of having deprecated the
method `.copy()`.
{{{
sage -t -long devel/sage/sage/server/simple/twist.py
**********************************************************************
File "/scratch/mvngu/release/sage-4.1.2.alpha1/devel/sage-
main/sage/server/simple/twist.py", line 51:
sage: print
get_url('http://localhost:%s/simple/compute?session=%s&code=2*2' % (port,
session))
Expected:
{
"status": "done",
"files": [],
"cell_id": 1
}
___S_A_G_E___
4
Got:
{
"status": "done",
"files": [],
"cell_id": 1
}
___S_A_G_E___
<BLANKLINE>
4
e0
**********************************************************************
1 items had failures:
1 of 24 in __main__.example_0
***Test Failed*** 1 failures.
For whitespace errors, see the file
/scratch/mvngu/release/sage-4.1.2.alpha1/tmp/.doctest_twist.py
[8.5 s]
<SNIP>
sage -t -long devel/sage/sage/geometry/lattice_polytope.py
**********************************************************************
File "/scratch/mvngu/release/sage-4.1.2.alpha1/devel/sage-
main/sage/geometry/lattice_polytope.py", line 233:
sage: p = LatticePolytope(m, "A lattice polytope with WRONG vertices",
compute_vertices=False)
Expected nothing
Got:
doctest:259: DeprecationWarning: the .copy() method is deprecated;
please use the copy() function instead, for example, copy(M)
**********************************************************************
1 items had failures:
1 of 18 in __main__.example_3
***Test Failed*** 1 failures.
For whitespace errors, see the file
/scratch/mvngu/release/sage-4.1.2.alpha1/tmp/.doctest_lattice_polytope.py
[11.9 s]
<SNIP>
sage -t -long devel/sage/sage/plot/plot3d/base.pyx
**********************************************************************
File "/scratch/mvngu/release/sage-4.1.2.alpha1/devel/sage-
main/sage/plot/plot3d/base.pyx", line 1509:
sage: T.get_matrix()
Expected:
[100.0 0.0 0.0 0.0]
[ 0.0 100.0 0.0 0.0]
[ 0.0 0.0 100.0 0.0]
[ 0.0 0.0 0.0 1.0]
Got:
doctest:1172: DeprecationWarning: the .copy() method is deprecated;
please use the copy() function instead, for example, copy(M)
[100.0 0.0 0.0 0.0]
[ 0.0 100.0 0.0 0.0]
[ 0.0 0.0 100.0 0.0]
[ 0.0 0.0 0.0 1.0]
**********************************************************************
1 items had failures:
1 of 5 in __main__.example_55
***Test Failed*** 1 failures.
For whitespace errors, see the file
/scratch/mvngu/release/sage-4.1.2.alpha1/tmp/.doctest_base.py
[8.0 s]
<SNIP>
sage -t -long devel/sage/sage/crypto/mq/sbox.py
**********************************************************************
File "/scratch/mvngu/release/sage-4.1.2.alpha1/devel/sage-
main/sage/crypto/mq/sbox.py", line 420:
sage: S.maximal_difference_probability_absolute()
Expected:
2
Got:
doctest:1: DeprecationWarning: the .copy() method is deprecated;
please use the copy() function instead, for example, copy(M)
2
**********************************************************************
File "/scratch/mvngu/release/sage-4.1.2.alpha1/devel/sage-
main/sage/crypto/mq/sbox.py", line 440:
sage: S.maximal_difference_probability()
Expected:
0.25
Got:
doctest:443: DeprecationWarning: the .copy() method is deprecated;
please use the copy() function instead, for example, copy(M)
0.25
**********************************************************************
File "/scratch/mvngu/release/sage-4.1.2.alpha1/devel/sage-
main/sage/crypto/mq/sbox.py", line 518:
sage: S.maximal_linear_bias_absolute()
Expected:
2
Got:
doctest:1: DeprecationWarning: the .copy() method is deprecated;
please use the copy() function instead, for example, copy(M)
2
**********************************************************************
File "/scratch/mvngu/release/sage-4.1.2.alpha1/devel/sage-
main/sage/crypto/mq/sbox.py", line 533:
sage: S.maximal_linear_bias_relative()
Expected:
0.25
Got:
doctest:536: DeprecationWarning: the .copy() method is deprecated;
please use the copy() function instead, for example, copy(M)
0.25
**********************************************************************
4 items had failures:
1 of 4 in __main__.example_14
1 of 4 in __main__.example_15
1 of 4 in __main__.example_17
1 of 4 in __main__.example_18
***Test Failed*** 4 failures.
For whitespace errors, see the file
/scratch/mvngu/release/sage-4.1.2.alpha1/tmp/.doctest_sbox.py
[3.0 s]
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6521#comment:10>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---