Skip to content

Commit 7a8528a

Browse files
committed
deal with removal of np.unicode_
1 parent f9d4724 commit 7a8528a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stringdtype/tests/test_char.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def string_array():
1414

1515
@pytest.fixture
1616
def unicode_array():
17-
return np.array(TEST_DATA, dtype=np.unicode_)
17+
return np.array(TEST_DATA, dtype=np.str_)
1818

1919

2020
UNARY_FUNCTIONS = [

stringdtype/tests/test_stringdtype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def test_scalars_string_conversion(data, dtype):
145145
],
146146
)
147147
def test_unicode_casts(dtype, strings):
148-
arr = np.array(strings, dtype=np.unicode_).astype(dtype)
148+
arr = np.array(strings, dtype=np.str_).astype(dtype)
149149
expected = np.array(strings, dtype=dtype)
150150
np.testing.assert_array_equal(arr, expected)
151151

0 commit comments

Comments
 (0)