Commit b31777cd authored by Jason R. Coombs's avatar Jason R. Coombs

Add more tests for valid behavior. Expand exception, any should do.

parent ca0ee009
......@@ -819,6 +819,28 @@ class TestOptions:
]
assert sorted(dist.data_files) == sorted(expected)
def test_python_requires_simple(self, tmpdir):
fake_env(
tmpdir,
DALS("""
[options]
python_requires=>=2.7
"""),
)
with get_dist(tmpdir) as dist:
dist.parse_config_files()
def test_python_requires_compound(self, tmpdir):
fake_env(
tmpdir,
DALS("""
[options]
python_requires=>=2.7,!=3.0.*
"""),
)
with get_dist(tmpdir) as dist:
dist.parse_config_files()
def test_python_requires_invalid(self, tmpdir):
fake_env(
tmpdir,
......@@ -827,7 +849,7 @@ class TestOptions:
python_requires=invalid
"""),
)
with pytest.raises(DistutilsOptionError):
with pytest.raises(Exception):
with get_dist(tmpdir) as dist:
dist.parse_config_files()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment