@@ -860,7 +860,7 @@ def test_np_array_mul_ea_array_returns_extensionarray(self):
860860 np_array = np .array ([1 , 2 , 3 , 4 , 5 ], dtype = tm .SIGNED_INT_NUMPY_DTYPES [0 ])
861861 ea_array = pd .array ([1 , 2 , 3 , 4 , 5 ], dtype = tm .SIGNED_INT_EA_DTYPES [0 ])
862862 result = np_array * ea_array
863- tm . assert_isinstance (result , type (ea_array ))
863+ assert isinstance (result , type (ea_array ))
864864 tm .assert_equal (
865865 result , pd .array ([1 , 4 , 9 , 16 , 25 ], dtype = tm .SIGNED_INT_EA_DTYPES [0 ])
866866 )
@@ -874,10 +874,10 @@ def test_df_mul_np_and_ea_array_shape_and_errors(self):
874874 10 , 1
875875 )
876876 result_np = df * NP_array
877- tm . assert_isinstance (result_np , np .ndarray )
877+ assert isinstance (result_np , np .ndarray )
878878 tm .assert_equal (result_np .shape , (10 , 5 ))
879879
880- with tm . assert_raises (TypeError ):
880+ with pytest . raises (TypeError ):
881881 _ = df * EA_array
882882
883883 def test_non_1d_ea_raises_typeerror (self ):
@@ -888,9 +888,9 @@ def test_non_1d_ea_raises_typeerror(self):
888888 [1 , 2 , 3 , 4 , 5 ], dtype = tm .SIGNED_INT_NUMPY_DTYPES [0 ]
889889 ).reshape (5 , 1 )
890890
891- with tm . assert_raises (TypeError ):
891+ with pytest . raises (TypeError ):
892892 _ = ea_array * np_array
893- with tm . assert_raises (TypeError ):
893+ with pytest . raises (TypeError ):
894894 _ = np_array * ea_array
895895
896896
0 commit comments