Fix expected wheel test logic

This commit is contained in:
Joe Rickerby
2020-02-18 22:19:13 +00:00
parent 5187633e26
commit 8a450b7655
@@ -53,10 +53,10 @@ def test_pinned_versions(python_version):
# also check that we got the right wheels
if python_version == '2.7':
expected_wheels = [w for w in utils.expected_wheels('spam', '0.1.0')
if w.startswith('cp27')]
if '-cp27' in w]
else:
expected_wheels = [w for w in utils.expected_wheels('spam', '0.1.0')
if w.startswith('cp3')]
if '-cp27' not in w]
assert set(actual_wheels) == set(expected_wheels)