Skip to content

Commit d816476

Browse files
string storage option not yet honored for NaN-variant
1 parent c445a36 commit d816476

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/tests/arrays/string_/test_string_arrow.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import numpy as np
55
import pytest
66

7+
from pandas.compat import HAS_PYARROW
78
import pandas.util._test_decorators as td
89

910
import pandas as pd
@@ -26,7 +27,12 @@ def test_eq_all_na():
2627
tm.assert_extension_array_equal(result, expected)
2728

2829

29-
def test_config(string_storage, using_infer_string):
30+
def test_config(string_storage, request, using_infer_string):
31+
if using_infer_string and string_storage == "python" and HAS_PYARROW:
32+
# string storage with na_value=NaN always uses pyarrow if available
33+
# -> does not yet honor the option
34+
request.applymarker(pytest.mark.xfail(reason="TODO(infer_string)"))
35+
3036
with pd.option_context("string_storage", string_storage):
3137
assert StringDtype().storage == string_storage
3238
result = pd.array(["a", "b"])

0 commit comments

Comments
 (0)