Add missing 3.6 pin test

This commit is contained in:
Joe Rickerby
2020-05-06 20:24:13 +01:00
parent cc1ae4a963
commit a679a09212
+7 -1
View File
@@ -50,7 +50,7 @@ def get_versions_from_constraint_file(constraint_file):
return versions
@pytest.mark.parametrize('python_version', ['2.7', '3.5', '3.8'])
@pytest.mark.parametrize('python_version', ['2.7', '3.5', '3.6', '3.8'])
def test_pinned_versions(tmp_path, python_version):
if utils.platform == 'linux':
pytest.skip('linux doesn\'t pin individual tool versions, it pins manylinux images instead')
@@ -66,6 +66,9 @@ def test_pinned_versions(tmp_path, python_version):
elif python_version == '3.5':
constraint_filename = 'constraints-python35.txt'
build_pattern = '[cp]p35-*'
elif python_version == '3.6':
constraint_filename = 'constraints-python36.txt'
build_pattern = '[cp]p36-*'
else:
constraint_filename = 'constraints.txt'
build_pattern = '[cp]p38-*'
@@ -94,6 +97,9 @@ def test_pinned_versions(tmp_path, python_version):
elif python_version == '3.5':
expected_wheels = [w for w in utils.expected_wheels('spam', '0.1.0')
if '-cp35' in w or '-pp35' in w]
elif python_version == '3.6':
expected_wheels = [w for w in utils.expected_wheels('spam', '0.1.0')
if '-cp36' in w or '-pp36' in w]
elif python_version == '3.8':
expected_wheels = [w for w in utils.expected_wheels('spam', '0.1.0')
if '-cp38' in w or '-pp38' in w]