Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0988c0

Browse files
committed
TST: Mark test_other_signal_before_sigint mac as xfail
1 parent 23e2dfc commit d0988c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -816,12 +816,12 @@ def custom_signal_handler(signum, frame):
816816
('show', {'block': True}),
817817
('pause', {'interval': 10})
818818
])
819-
def test_other_signal_before_sigint(env, target, kwargs):
819+
def test_other_signal_before_sigint(env, target, kwargs, request):
820820
backend = env.get("MPLBACKEND")
821821
if not backend.startswith(("qt", "macosx")):
822822
pytest.skip("SIGINT currently only tested on qt and macosx")
823-
if backend == "macosx" and target == "show":
824-
pytest.xfail("test currently failing for macosx + show()")
823+
if backend == "macosx":
824+
request.node.add_marker(pytest.mark.xfail(reason="macosx backend is buggy"))
825825
proc = _WaitForStringPopen(
826826
[sys.executable, "-c",
827827
inspect.getsource(_test_other_signal_before_sigint_impl) +

0 commit comments

Comments
 (0)