Fix crashing test

This commit is contained in:
Joe Rickerby
2021-01-24 14:50:47 +00:00
parent bd45b1c901
commit 00eed5aac5
+7
View File
@@ -55,6 +55,13 @@ def test_pinned_versions(tmp_path, python_version):
if utils.IS_WINDOWS_RUNNING_ON_TRAVIS and python_version == '2.7':
pytest.skip('Windows + Travis CI requires a workaround')
is_running_on_macos_11_or_later = (
utils.platform == 'macos' and utils.get_macos_version() >= (10, 16)
)
if is_running_on_macos_11_or_later and python_version == '3.5':
pytest.skip('CPython 3.5 doesn\'t work on macOS Big Sur+')
project_dir = tmp_path / 'project'
project_with_expected_version_checks.generate(project_dir)