Skip to content

Commit acdfb62

Browse files
committed
Updated references to numpy.bool to include underscore.
1 parent e4c3a5b commit acdfb62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/tests/arrays/numpy_/test_numpy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
)
342342
def 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
)
372372
def 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))

0 commit comments

Comments
 (0)