Fix macOS Big Sur version checks

This commit is contained in:
Joe Rickerby
2021-01-08 14:28:39 +00:00
parent 07681239e4
commit 1606b79749
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ ALL_MACOS_WHEELS = (
def test_cross_compiled_build(tmp_path):
if utils.platform != 'macos':
pytest.skip('this test is only relevant to macos')
if utils.get_macos_version() < (11, 0):
if utils.get_macos_version() < (10, 16):
pytest.skip('this test only works on macOS 11 or greater')
project_dir = tmp_path / 'project'
@@ -33,7 +33,7 @@ def test_cross_compiled_build(tmp_path):
def test_cross_compiled_test(tmp_path, capfd, build_universal2):
if utils.platform != 'macos':
pytest.skip('this test is only relevant to macos')
if utils.get_macos_version() < (11, 0):
if utils.get_macos_version() < (10, 16):
pytest.skip('this test only works on macOS 11 or greater')
project_dir = tmp_path / 'project'