File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
pandas/tests/arrays/numpy_ Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ def test_factorize_unsigned():
328328@pytest .mark .parametrize (
329329 "dtype" ,
330330 [
331- np .bool ,
331+ np .bool_ ,
332332 np .uint8 ,
333333 np .uint16 ,
334334 np .uint32 ,
@@ -341,7 +341,7 @@ def test_factorize_unsigned():
341341)
342342def test_take_assigns_floating_point_dtype (dtype ):
343343 # GH#62448.
344- if dtype == np .bool :
344+ if dtype == np .bool_ :
345345 array = NumpyExtensionArray (np .array ([False , True , False ], dtype = dtype ))
346346 expected = np .dtype (object )
347347 else :
@@ -358,7 +358,7 @@ def test_take_assigns_floating_point_dtype(dtype):
358358@pytest .mark .parametrize (
359359 "dtype" ,
360360 [
361- np .bool ,
361+ np .bool_ ,
362362 np .uint8 ,
363363 np .uint16 ,
364364 np .uint32 ,
@@ -371,7 +371,7 @@ def test_take_assigns_floating_point_dtype(dtype):
371371)
372372def test_take_assigns_integer_dtype_when_fill_disallowed (dtype ):
373373 # GH#62448.
374- if dtype == np .bool :
374+ if dtype == np .bool_ :
375375 array = NumpyExtensionArray (np .array ([False , True , False ], dtype = dtype ))
376376 else :
377377 array = NumpyExtensionArray (np .array ([1 , 2 , 3 ], dtype = dtype ))
You can’t perform that action at this time.
0 commit comments