Skip to content

Commit

Permalink
remove usage of np.unicode_ from asciidtype
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Aug 30, 2023
1 parent 8ab07ef commit 58ac555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asciidtype/tests/test_asciidtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_casting_safety():
def test_unicode_to_ascii_to_unicode():
arr = np.array(["hello", "this", "is", "an", "array"])
ascii_arr = arr.astype(ASCIIDType(5))
for dtype in ["U5", np.unicode_, np.str_]:
for dtype in ["U5", np.str_]:
round_trip_arr = ascii_arr.astype(dtype)
np.testing.assert_array_equal(arr, round_trip_arr)

Expand Down

0 comments on commit 58ac555

Please sign in to comment.