Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b8c22f0 + 57d7f45 commit 35f4778Copy full SHA for 35f4778
1 file changed
lib/matplotlib/tests/test_backends_interactive.py
@@ -222,8 +222,14 @@ def _test_thread_impl():
222
param.marks.append(
223
pytest.mark.xfail(raises=subprocess.CalledProcessError))
224
elif backend == "macosx":
225
- param.marks.append(
226
- pytest.mark.xfail(raises=subprocess.TimeoutExpired, strict=True))
+ from packaging.version import parse
+ mac_ver = platform.mac_ver()[0]
227
+ # Note, macOS Big Sur is both 11 and 10.16, depending on SDK that
228
+ # Python was compiled against.
229
+ if mac_ver and parse(mac_ver) < parse('10.16'):
230
+ param.marks.append(
231
+ pytest.mark.xfail(raises=subprocess.TimeoutExpired,
232
+ strict=True))
233
elif param.values[0].get("QT_API") == "PySide2":
234
235
0 commit comments