Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Nov 8, 2024
1 parent 8e13abf commit 061d93f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setuptools/tests/test_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,12 @@ def test_check_specifier():
dist = Distribution(attrs)
check_specifier(dist, attrs, attrs['python_requires'])

# invalid specifier value
attrs = {'name': 'foo', 'python_requires': ['>=3.0', '!=3.1']}
dist = Distribution(attrs)
check_specifier(dist, attrs, attrs['python_requires'])

# invalid specifier value
attrs = {'name': 'foo', 'python_requires': '>=invalid-version'}
with pytest.raises(DistutilsSetupError):
dist = Distribution(attrs)

Expand Down

0 comments on commit 061d93f

Please sign in to comment.