Skip to content

Commit c9d6e89

Browse files
committed
xpass -> skip
1 parent 95d5cbf commit c9d6e89

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

pandas/tests/extension/decimal/test_decimal.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class TestInterface(BaseDecimal, base.BaseInterfaceTests):
102102

103103
class TestConstructors(BaseDecimal, base.BaseConstructorsTests):
104104

105-
@pytest.mark.xfail(reason="not implemented constructor from dtype")
105+
@pytest.mark.skip(reason="not implemented constructor from dtype")
106106
def test_from_dtype(self, data):
107107
# construct from our dtype & string dtype
108108
pass

pandas/tests/extension/json/test_json.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ def test_custom_asserts(self):
131131

132132
class TestConstructors(BaseJSON, base.BaseConstructorsTests):
133133

134-
# TODO: Should this be pytest.mark.skip?
135-
@pytest.mark.xfail(reason="not implemented constructor from dtype")
134+
@pytest.mark.skip(reason="not implemented constructor from dtype")
136135
def test_from_dtype(self, data):
137136
# construct from our dtype & string dtype
138137
pass
@@ -147,13 +146,11 @@ class TestGetitem(BaseJSON, base.BaseGetitemTests):
147146

148147

149148
class TestMissing(BaseJSON, base.BaseMissingTests):
150-
# TODO: Should this be pytest.mark.skip?
151-
@pytest.mark.xfail(reason="Setting a dict as a scalar")
149+
@pytest.mark.skip(reason="Setting a dict as a scalar")
152150
def test_fillna_series(self):
153151
"""We treat dictionaries as a mapping in fillna, not a scalar."""
154152

155-
# TODO: Should this be pytest.mark.skip?
156-
@pytest.mark.xfail(reason="Setting a dict as a scalar")
153+
@pytest.mark.skip(reason="Setting a dict as a scalar")
157154
def test_fillna_frame(self):
158155
"""We treat dictionaries as a mapping in fillna, not a scalar."""
159156

@@ -204,8 +201,7 @@ def test_combine_add(self, data_repeated):
204201

205202

206203
class TestCasting(BaseJSON, base.BaseCastingTests):
207-
# TODO: Should this be pytest.mark.skip?
208-
@pytest.mark.xfail(reason="failing on np.array(self, dtype=str)")
204+
@pytest.mark.skip(reason="failing on np.array(self, dtype=str)")
209205
def test_astype_str(self):
210206
"""This currently fails in NumPy on np.array(self, dtype=str) with
211207

pandas/tests/extension/test_categorical.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ def test_take_series(self):
140140
def test_reindex_non_na_fill_value(self):
141141
pass
142142

143-
@pytest.mark.xfail(reason="Categorical.take buggy")
143+
@pytest.mark.skip(reason="Categorical.take buggy")
144144
def test_take_empty(self):
145145
pass
146146

147-
@pytest.mark.xfail(reason="test not written correctly for categorical")
147+
@pytest.mark.skip(reason="test not written correctly for categorical")
148148
def test_reindex(self):
149149
pass
150150

0 commit comments

Comments
 (0)