Skip to content

Commit 061d93f

Browse files
committed
Fix test
1 parent 8e13abf commit 061d93f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setuptools/tests/test_dist.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,12 @@ def test_check_specifier():
144144
dist = Distribution(attrs)
145145
check_specifier(dist, attrs, attrs['python_requires'])
146146

147-
# invalid specifier value
148147
attrs = {'name': 'foo', 'python_requires': ['>=3.0', '!=3.1']}
148+
dist = Distribution(attrs)
149+
check_specifier(dist, attrs, attrs['python_requires'])
150+
151+
# invalid specifier value
152+
attrs = {'name': 'foo', 'python_requires': '>=invalid-version'}
149153
with pytest.raises(DistutilsSetupError):
150154
dist = Distribution(attrs)
151155

0 commit comments

Comments
 (0)