Skip to content

Commit fefe6c9

Browse files
update tests
1 parent 7e699b8 commit fefe6c9

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

pandas/tests/arrays/categorical/test_analytics.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44
import numpy as np
55
import pytest
66

7-
from pandas._config import using_string_dtype
8-
9-
from pandas.compat import (
10-
HAS_PYARROW,
11-
PYPY,
12-
)
7+
from pandas.compat import PYPY
138

149
from pandas import (
1510
Categorical,
@@ -301,9 +296,6 @@ def test_nbytes(self):
301296
exp = 3 + 3 * 8 # 3 int8s for values + 3 int64s for categories
302297
assert cat.nbytes == exp
303298

304-
@pytest.mark.xfail(
305-
using_string_dtype() and HAS_PYARROW, reason="TODO(infer_string)"
306-
)
307299
def test_memory_usage(self):
308300
cat = Categorical([1, 2, 3])
309301

pandas/tests/groupby/aggregate/test_cython.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ def test_cython_agg_return_dict():
164164
tm.assert_series_equal(ts, expected)
165165

166166

167-
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
168167
def test_cython_fail_agg():
169168
dr = bdate_range("1/1/2000", periods=50)
170169
ts = Series(["A", "B", "C", "D", "E"] * 10, index=dr)

pandas/tests/series/methods/test_replace.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ def test_replace_mixed_types_with_string(self):
391391
expected = pd.Series([1, np.nan, 3, np.nan, 4, 5])
392392
tm.assert_series_equal(expected, result)
393393

394+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
394395
@pytest.mark.parametrize(
395396
"categorical, numeric",
396397
[

0 commit comments

Comments
 (0)