From 58ac555eab08ad2ad7859d6a26b369be91031146 Mon Sep 17 00:00:00 2001 From: Nathan Goldbaum Date: Wed, 30 Aug 2023 09:29:28 -0600 Subject: [PATCH] remove usage of np.unicode_ from asciidtype --- asciidtype/tests/test_asciidtype.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asciidtype/tests/test_asciidtype.py b/asciidtype/tests/test_asciidtype.py index 8e7c7ba4..4c44b9d5 100644 --- a/asciidtype/tests/test_asciidtype.py +++ b/asciidtype/tests/test_asciidtype.py @@ -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)