alippai commented on code in PR #48391:
URL: https://github.com/apache/arrow/pull/48391#discussion_r2613005613
##########
python/pyarrow/tests/test_array.py:
##########
@@ -2758,6 +2758,70 @@ def test_array_from_numpy_unicode(string_type):
assert arrow_arr.equals(expected)
[email protected]
+def test_array_from_numpy_string_dtype():
+ dtypes_mod = getattr(np, "dtypes", None)
+ if dtypes_mod is None:
+ pytest.skip("NumPy dtypes module not available")
+
+ StringDType = getattr(dtypes_mod, "StringDType", None)
+ if StringDType is None:
+ pytest.skip("NumPy StringDType not available")
+
+ dtype = StringDType()
+
+ arr = np.array(["some", "strings"], dtype=dtype)
Review Comment:
Added more test strings
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]