Skip to content

Commit 786e403

Browse files
committed
TST: Remove unneeded skipifs
1 parent cc71fde commit 786e403

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tests/indexing/test_indexing.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ def test_setitem_dtype_upcast(self):
132132
assert is_float_dtype(left['foo'])
133133
assert is_float_dtype(left['baz'])
134134

135-
@pytest.mark.skipif(PY2, reason=("Catching warnings unreliable with "
136-
"Python 2 (GH #20770)"))
137135
def test_dups_fancy_indexing(self):
138136

139137
# GH 3455
@@ -223,6 +221,10 @@ def test_dups_fancy_indexing(self):
223221
result = df.loc[['A', 'A', 'E']]
224222
tm.assert_frame_equal(result, expected)
225223

224+
if PY2:
225+
# Catching warnings unreliable with Python 2 (GH #20770)
226+
pytest.skip()
227+
226228
# GH 5835
227229
# dups on index and missing values
228230
df = DataFrame(

0 commit comments

Comments
 (0)