File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 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):
237237 s = p [0 ]
238238 res = s % p
239239 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 ))
241241
242242 def test_div (self ):
243243
@@ -271,7 +271,7 @@ def test_div(self):
271271 s = p [0 ]
272272 res = s / p
273273 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 ))
275275
276276 def test_logical_operators (self ):
277277
@@ -1030,7 +1030,7 @@ def test_boolean_comparison(self):
10301030 assert_numpy_array_equal (result , expected .values )
10311031
10321032 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
10341034
10351035 # with alignment
10361036 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):
694694 p = p .astype ('float64' )
695695 result = p ['first' ] % p ['second' ]
696696 result2 = p ['second' ] % p ['first' ]
697- assert not np . array_equal ( result , result2 )
697+ assert not result . equals ( result2 )
698698
699699 # GH 9144
700700 s = Series ([0 , 1 ])
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ def test_div(self):
122122 assert_series_equal (result , p ['first' ].astype ('float64' ),
123123 check_names = False )
124124 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' ])
126126
127127 # inf signing
128128 s = Series ([np .nan , 1. , - 1. ])
You can’t perform that action at this time.
0 commit comments