@@ -766,7 +766,7 @@ def test_divmod_scalar(self, numeric_idx):
766
766
div , mod = divmod (idx .values , 2 )
767
767
768
768
expected = Index (div ), Index (mod )
769
- for r , e in zip (result , expected ):
769
+ for r , e in zip (result , expected , strict = True ):
770
770
tm .assert_index_equal (r , e )
771
771
772
772
def test_divmod_ndarray (self , numeric_idx ):
@@ -778,7 +778,7 @@ def test_divmod_ndarray(self, numeric_idx):
778
778
div , mod = divmod (idx .values , other )
779
779
780
780
expected = Index (div ), Index (mod )
781
- for r , e in zip (result , expected ):
781
+ for r , e in zip (result , expected , strict = True ):
782
782
tm .assert_index_equal (r , e )
783
783
784
784
def test_divmod_series (self , numeric_idx ):
@@ -790,7 +790,7 @@ def test_divmod_series(self, numeric_idx):
790
790
div , mod = divmod (idx .values , other )
791
791
792
792
expected = Series (div ), Series (mod )
793
- for r , e in zip (result , expected ):
793
+ for r , e in zip (result , expected , strict = True ):
794
794
tm .assert_series_equal (r , e )
795
795
796
796
@pytest .mark .parametrize ("other" , [np .nan , 7 , - 23 , 2.718 , - 3.14 , np .inf ])
@@ -1088,7 +1088,7 @@ def test_divmod(self, func):
1088
1088
with np .errstate (all = "ignore" ):
1089
1089
expecteds = divmod (series .values , np .asarray (other_np ))
1090
1090
1091
- for result , expected in zip (results , expecteds ):
1091
+ for result , expected in zip (results , expecteds , strict = True ):
1092
1092
# check the values, name, and index separately
1093
1093
tm .assert_almost_equal (np .asarray (result ), expected )
1094
1094
0 commit comments