Skip to content

Commit 1041bc2

Browse files
committed
test NaT
1 parent 99da6f0 commit 1041bc2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/tests/arrays/string_/test_string.py

+3
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ def test_constructor_raises():
200200
with pytest.raises(ValueError, match="strings or pandas.NA"):
201201
pd.arrays.StringArray(np.array(["a", None], dtype=object))
202202

203+
with pytest.raises(ValueError, match="strings or pandas.NA"):
204+
pd.arrays.StringArray(np.array(["a", pd.NaT], dtype=object))
205+
203206

204207
def test_from_sequnce_no_mutate():
205208
a = np.array(["a", pd.NA], dtype=object)

0 commit comments

Comments
 (0)