File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ def test_modulo(self):
237
237
s = p [0 ]
238
238
res = s % p
239
239
res2 = p % s
240
- assert not np . array_equal ( res .fillna (0 ), res2 .fillna (0 ))
240
+ assert not res .fillna (0 ). equals ( res2 .fillna (0 ))
241
241
242
242
def test_div (self ):
243
243
@@ -271,7 +271,7 @@ def test_div(self):
271
271
s = p [0 ]
272
272
res = s / p
273
273
res2 = p / s
274
- assert not np . array_equal ( res .fillna (0 ), res2 .fillna (0 ))
274
+ assert not res .fillna (0 ). equals ( res2 .fillna (0 ))
275
275
276
276
def test_logical_operators (self ):
277
277
@@ -1030,7 +1030,7 @@ def test_boolean_comparison(self):
1030
1030
assert_numpy_array_equal (result , expected .values )
1031
1031
1032
1032
pytest .raises (ValueError , lambda : df == b_c )
1033
- assert not np . array_equal ( df .values , b_c )
1033
+ assert df .values . shape != b_c . shape
1034
1034
1035
1035
# with alignment
1036
1036
df = DataFrame (np .arange (6 ).reshape ((3 , 2 )),
Original file line number Diff line number Diff line change @@ -694,7 +694,7 @@ def test_modulo(self):
694
694
p = p .astype ('float64' )
695
695
result = p ['first' ] % p ['second' ]
696
696
result2 = p ['second' ] % p ['first' ]
697
- assert not np . array_equal ( result , result2 )
697
+ assert not result . equals ( result2 )
698
698
699
699
# GH 9144
700
700
s = Series ([0 , 1 ])
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ def test_div(self):
122
122
assert_series_equal (result , p ['first' ].astype ('float64' ),
123
123
check_names = False )
124
124
assert result .name is None
125
- assert not np . array_equal ( result , p ['second' ] / p ['first' ])
125
+ assert not result . equals ( p ['second' ] / p ['first' ])
126
126
127
127
# inf signing
128
128
s = Series ([np .nan , 1. , - 1. ])
You can’t perform that action at this time.
0 commit comments