File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -222,8 +222,14 @@ def _test_thread_impl():
222
222
param .marks .append (
223
223
pytest .mark .xfail (raises = subprocess .CalledProcessError ))
224
224
elif backend == "macosx" :
225
- param .marks .append (
226
- pytest .mark .xfail (raises = subprocess .TimeoutExpired , strict = True ))
225
+ from packaging .version import parse
226
+ 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 ))
227
233
elif param .values [0 ].get ("QT_API" ) == "PySide2" :
228
234
param .marks .append (
229
235
pytest .mark .xfail (raises = subprocess .CalledProcessError ))
You can’t perform that action at this time.
0 commit comments