Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bcd72f8

Browse files
Merge pull request #23194 from tacaswell/auto-backport-of-pr-23095-on-v3.5.x
Backport PR #23095: Try to unbreak CI by xfailing OSX Tk tests
2 parents c5a24ff + 4da387e commit bcd72f8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

‎lib/matplotlib/tests/test_backend_tk.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ def _isolated_tk_test(success_count, func=None):
3131
# Remove decorators.
3232
source = re.search(r"(?ms)^def .*", inspect.getsource(func)).group(0)
3333

34+
@pytest.mark.xfail( # GitHub issue #23094
35+
sys.platform == 'darwin',
36+
reason="Tk version mismatch on OSX CI"
37+
)
3438
@functools.wraps(func)
3539
def test_func():
3640
try:

‎lib/matplotlib/tests/test_backends_interactive.py‎

Lines changed: 6 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(pytest.param(env, marks=marks, id=str(env)))
6366
return envs
6467

@@ -231,6 +234,9 @@ def _test_thread_impl():
231234
reason='PyPy does not support Tkinter threading: '
232235
'https://foss.heptapod.net/pypy/pypy/-/issues/1929',
233236
strict=True))
237+
elif backend == "tkagg" and sys.platform == "darwin":
238+
param.marks.append( # GitHub issue #23094
239+
pytest.mark.xfail("Tk version mismatch on OSX CI"))
234240

235241

236242
@pytest.mark.parametrize("env", _thread_safe_backends)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /