Skip to content

Commit 5c3350c

Browse files
committed
fix tests (un-xfail)
1 parent efb61c5 commit 5c3350c

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

pandas/tests/generic/test_duplicate_labels.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def test_binops(self, func, other, frame):
8484
assert df.flags.allows_duplicate_labels is False
8585
assert func(df).flags.allows_duplicate_labels is False
8686

87-
@not_implemented
8887
def test_preserve_getitem(self):
8988
df = pd.DataFrame({"A": [1, 2]}).set_flags(allows_duplicate_labels=False)
9089
assert df[["A"]].flags.allows_duplicate_labels is False
@@ -306,15 +305,11 @@ def test_series_raises(self):
306305
(operator.itemgetter(["A", "A"]), None),
307306
# loc
308307
(operator.itemgetter(["a", "a"]), "loc"),
309-
pytest.param(
310-
operator.itemgetter(("a", ["A", "A"])), "loc", marks=not_implemented
311-
),
308+
pytest.param(operator.itemgetter(("a", ["A", "A"])), "loc"),
312309
(operator.itemgetter((["a", "a"], "A")), "loc"),
313310
# iloc
314311
(operator.itemgetter([0, 0]), "iloc"),
315-
pytest.param(
316-
operator.itemgetter((0, [0, 0])), "iloc", marks=not_implemented
317-
),
312+
pytest.param(operator.itemgetter((0, [0, 0])), "iloc"),
318313
pytest.param(operator.itemgetter(([0, 0], 0)), "iloc"),
319314
],
320315
)

pandas/tests/generic/test_finalize.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,16 @@
249249
),
250250
pytest.param(
251251
(pd.DataFrame, frame_data, operator.methodcaller("quantile")),
252-
marks=not_implemented_mark,
253252
),
254253
pytest.param(
255254
(pd.DataFrame, frame_data, operator.methodcaller("quantile", q=[0.25, 0.75])),
256255
),
257256
pytest.param(
258-
(pd.DataFrame, frame_data, operator.methodcaller("quantile")),
259-
marks=not_implemented_mark,
257+
(
258+
pd.DataFrame,
259+
({"A": [pd.Timedelta(days=1), pd.Timedelta(days=2)]},),
260+
operator.methodcaller("quantile"),
261+
),
260262
),
261263
(
262264
pd.DataFrame,

0 commit comments

Comments
 (0)