@@ -14,11 +14,12 @@ def test(dtype):
14
14
assert (mat == mat_copy ).all ()
15
15
assert not (mat != mat_copy ).all ()
16
16
17
- # if version.parse(np.__version__) >= version.parse("1.21.0"): # check if it fixes for new versio of NumPy
18
- # mat.fill(mat.dtype.type(20.))
19
- # mat_copy = mat.copy()
20
- # assert((mat == mat_copy).all())
21
- # assert(not (mat != mat_copy).all())
17
+ # if version.parse(np.__version__) >= version.parse("1.21.0"):
18
+ # # check if it fixes for new version of NumPy
19
+ # mat.fill(mat.dtype.type(20.0))
20
+ # mat_copy = mat.copy()
21
+ # assert (mat == mat_copy).all()
22
+ # assert not (mat != mat_copy).all()
22
23
23
24
mat_op = mat + mat
24
25
mat_op = mat .copy (order = "F" ) + mat .copy (order = "C" )
@@ -28,7 +29,7 @@ def test(dtype):
28
29
mat_op = mat .dot (mat .T )
29
30
mat_op = mat / mat
30
31
31
- mat_op = - mat
32
+ mat_op = - mat # noqa
32
33
33
34
assert (mat >= mat ).all ()
34
35
assert (mat <= mat ).all ()
@@ -47,7 +48,7 @@ def test_cast(from_dtype, to_dtype):
47
48
np .can_cast (from_dtype , to_dtype )
48
49
49
50
from_mat = np .zeros ((rows , cols ), dtype = from_dtype )
50
- to_mat = from_mat .astype (dtype = to_dtype )
51
+ to_mat = from_mat .astype (dtype = to_dtype ) # noqa
51
52
52
53
53
54
test (user_type .CustomDouble )
0 commit comments