Skip to content

Commit 87abede

Browse files
committed
remove xfail tests related to attrs
1 parent b154203 commit 87abede

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

pandas/tests/generic/test_finalize.py

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -427,53 +427,6 @@ def test_binops(request, args, annotate, all_binary_operators):
427427
if annotate == "right" and isinstance(right, int):
428428
pytest.skip("right is an int and doesn't support .attrs")
429429

430-
if not (isinstance(left, int) or isinstance(right, int)) and annotate != "both":
431-
if not all_binary_operators.__name__.startswith("r"):
432-
if annotate == "right" and isinstance(left, type(right)):
433-
request.applymarker(
434-
pytest.mark.xfail(
435-
reason=f"{all_binary_operators} doesn't work when right has "
436-
f"attrs and both are {type(left)}"
437-
)
438-
)
439-
if not isinstance(left, type(right)):
440-
if annotate == "left" and isinstance(left, pd.Series):
441-
request.applymarker(
442-
pytest.mark.xfail(
443-
reason=f"{all_binary_operators} doesn't work when the "
444-
"objects are different Series has attrs"
445-
)
446-
)
447-
elif annotate == "right" and isinstance(right, pd.Series):
448-
request.applymarker(
449-
pytest.mark.xfail(
450-
reason=f"{all_binary_operators} doesn't work when the "
451-
"objects are different Series has attrs"
452-
)
453-
)
454-
else:
455-
if annotate == "left" and isinstance(left, type(right)):
456-
request.applymarker(
457-
pytest.mark.xfail(
458-
reason=f"{all_binary_operators} doesn't work when left has "
459-
f"attrs and both are {type(left)}"
460-
)
461-
)
462-
if not isinstance(left, type(right)):
463-
if annotate == "right" and isinstance(right, pd.Series):
464-
request.applymarker(
465-
pytest.mark.xfail(
466-
reason=f"{all_binary_operators} doesn't work when the "
467-
"objects are different Series has attrs"
468-
)
469-
)
470-
elif annotate == "left" and isinstance(left, pd.Series):
471-
request.applymarker(
472-
pytest.mark.xfail(
473-
reason=f"{all_binary_operators} doesn't work when the "
474-
"objects are different Series has attrs"
475-
)
476-
)
477430
if annotate in {"left", "both"} and not isinstance(left, int):
478431
left.attrs = {"a": 1}
479432
if annotate in {"right", "both"} and not isinstance(right, int):

0 commit comments

Comments
 (0)