8000 Try to unbreak CI by xfailing OSX Tk tests (#23095) · matplotlib/matplotlib@d6ee414 · GitHub
[go: up one dir, main page]

Skip to content

Commit d6ee414

Browse files
timhoffmoscargus
andauthored
Try to unbreak CI by xfailing OSX Tk tests (#23095)
* Try to unbreak CI by xfailing OSX Tk tests Stopgap solution for #23094 * Update lib/matplotlib/tests/test_backend_tk.py * Update lib/matplotlib/tests/test_backend_tk.py Co-authored-by: Oscar Gustafsson <oscar.gustafsson@gmail.com>
1 parent 51624b6 commit d6ee414

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lib/matplotlib/tests/test_backend_tk.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ def _isolated_tk_test(success_count, func=None):
3737
sys.platform == "linux" and not _c_internal_utils.display_is_valid(),
3838
reason="$DISPLAY and $WAYLAND_DISPLAY are unset"
3939
)
40+
@pytest.mark.xfail( # GitHub issue #23094
41+
sys.platform == 'darwin',
42+
reason="Tk version mismatch on OSX CI"
43+
)
4044
@functools.wraps(func)
4145
def test_func():
4246
# even if the package exists, may not actually be importable this can

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 10 additions & 0 deletions
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)
0