Skip to content

Commit a9696aa

Browse files
committed
small fixes
1 parent 547388c commit a9696aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/arrays/string_/test_string.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,14 +528,14 @@ def test_to_numpy_na_value(dtype, nulls_fixture):
528528

529529
def test_contains():
530530
# GH-xxxxx
531-
arr = pd.array(np.array(["a", "b"], dtype="string"))
531+
arr = pd.array(["a", "b"], dtype="string")
532532

533533
assert "a" in arr
534534
assert "x" not in arr
535535
assert np.nan not in arr
536536
assert pd.NA not in arr
537537

538-
arr = pd.arrays.StringArray(np.array(["a", pd.NA]))
538+
arr = pd.array(["a", pd.NA], dtype="string")
539539
assert "a" in arr
540540
assert "x" not in arr
541541
assert np.nan in arr

0 commit comments

Comments
 (0)