@@ -860,7 +860,7 @@ def test_np_array_mul_ea_array_returns_extensionarray(self):
860
860
np_array = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = tm .SIGNED_INT_NUMPY_DTYPES [0 ])
861
861
ea_array = pd .array ([1 , 2 , 3 , 4 , 5 ], dtype = tm .SIGNED_INT_EA_DTYPES [0 ])
862
862
result = np_array * ea_array
863
- tm . assert_isinstance (result , type (ea_array ))
863
+ assert isinstance (result , type (ea_array ))
864
864
tm .assert_equal (
865
865
result , pd .array ([1 , 4 , 9 , 16 , 25 ], dtype = tm .SIGNED_INT_EA_DTYPES [0 ])
866
866
)
@@ -874,10 +874,10 @@ def test_df_mul_np_and_ea_array_shape_and_errors(self):
874
874
10 , 1
875
875
)
876
876
result_np = df * NP_array
877
- tm . assert_isinstance (result_np , np .ndarray )
877
+ assert isinstance (result_np , np .ndarray )
878
878
tm .assert_equal (result_np .shape , (10 , 5 ))
879
879
880
- with tm . assert_raises (TypeError ):
880
+ with pytest . raises (TypeError ):
881
881
_ = df * EA_array
882
882
883
883
def test_non_1d_ea_raises_typeerror (self ):
@@ -888,9 +888,9 @@ def test_non_1d_ea_raises_typeerror(self):
888
888
[1 , 2 , 3 , 4 , 5 ], dtype = tm .SIGNED_INT_NUMPY_DTYPES [0 ]
889
889
).reshape (5 , 1 )
890
890
891
- with tm . assert_raises (TypeError ):
891
+ with pytest . raises (TypeError ):
892
892
_ = ea_array * np_array
893
- with tm . assert_raises (TypeError ):
893
+ with pytest . raises (TypeError ):
894
894
_ = np_array * ea_array
895
895
896
896
0 commit comments