Skip to content

Commit 66143d6

Browse files
committed
Try to unbreak CI by xfailing OSX Tk tests
Stopgap solution for #23094
1 parent 037fcca commit 66143d6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/matplotlib/tests/test_backends_interactive.py

+10
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def _get_testable_interactive_backends():
5959
elif env["MPLBACKEND"].startswith('wx') and sys.platform == 'darwin':
6060
# ignore on OSX because that's currently broken (github #16849)
6161
marks.append(pytest.mark.xfail(reason='github #16849'))
62+
elif env["MPLBACKEND"] == "tkagg" and sys.platform == 'darwin':
63+
marks.append( # GitHub issue #23094
64+
pytest.mark.xfail(reason="Tk version mismatch on OSX CI"))
6265
envs.append(
6366
pytest.param(
6467
{**env, 'BACKEND_DEPS': ','.join(deps)},
@@ -236,6 +239,9 @@ def _test_thread_impl():
236239
reason='PyPy does not support Tkinter threading: '
237240
'https://foss.heptapod.net/pypy/pypy/-/issues/1929',
238241
strict=True))
242+
elif backend == "tkagg" and sys.platform == "darwin":
243+
param.marks.append( # GitHub issue #23094
244+
pytest.mark.xfail("Tk version mismatch on OSX CI"))
239245

240246

241247
@pytest.mark.parametrize("env", _thread_safe_backends)
@@ -510,6 +516,10 @@ def _test_number_of_draws_script():
510516
elif backend == "wx":
511517
param.marks.append(
512518
pytest.mark.skip("wx does not support blitting"))
519+
elif backend == "tkagg" and sys.platform == "darwin":
520+
param.marks.append( # GitHub issue #23094
521+
pytest.mark.xfail("Tk version mismatch on OSX CI")
522+
)
513523

514524

515525
@pytest.mark.parametrize("env", _blit_backends)

0 commit comments

Comments
 (0)