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

Skip to content

TST: xfail Tk test on Python 3.9 Azure macOS also #26135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_backend_tk.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _isolated_tk_test(success_count, func=None):
)
@pytest.mark.xfail( # https://github.com/actions/setup-python/issues/649
'TF_BUILD' in os.environ and sys.platform == 'darwin' and
sys.version_info[:2] == (3, 10),
sys.version_info[:2] < (3, 11),
reason='Tk version mismatch on Azure macOS CI'
)
@functools.wraps(func)
Expand Down
6 changes: 3 additions & 3 deletions lib/matplotlib/tests/test_backends_interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _get_testable_interactive_backends():
# ignore on OSX because that's currently broken (github #16849)
marks.append(pytest.mark.xfail(reason='github #16849'))
elif (env['MPLBACKEND'] == 'tkagg' and 'TF_BUILD' in os.environ and
sys.platform == 'darwin' and sys.version_info[:2] == (3, 10)):
sys.platform == 'darwin' and sys.version_info[:2] < (3, 11)):
marks.append( # https://github.com/actions/setup-python/issues/649
pytest.mark.xfail(reason='Tk version mismatch on Azure macOS CI'))
envs.append(
Expand Down Expand Up @@ -274,7 +274,7 @@ def _test_thread_impl():
'https://foss.heptapod.net/pypy/pypy/-/issues/1929',
strict=True))
elif (backend == 'tkagg' and 'TF_BUILD' in os.environ and
sys.platform == 'darwin' and sys.version_info[:2] == (3, 10)):
sys.platform == 'darwin' and sys.version_info[:2] < (3, 11)):
param.marks.append( # https://github.com/actions/setup-python/issues/649
pytest.mark.xfail('Tk version mismatch on Azure macOS CI'))

Expand Down Expand Up @@ -547,7 +547,7 @@ def _test_number_of_draws_script():
param.marks.append(
pytest.mark.skip("wx does not support blitting"))
elif (backend == 'tkagg' and 'TF_BUILD' in os.environ and
sys.platform == 'darwin' and sys.version_info[:2] == (3, 10)):
sys.platform == 'darwin' and sys.version_info[:2] < (3, 11)):
param.marks.append( # https://github.com/actions/setup-python/issues/649
pytest.mark.xfail('Tk version mismatch on Azure macOS CI')
)
Expand Down