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

Add test capturing failure. Ref #1787.

parent cb64d3a8
......@@ -819,6 +819,18 @@ class TestOptions:
]
assert sorted(dist.data_files) == sorted(expected)
def test_python_requires_invalid(self, tmpdir):
fake_env(
tmpdir,
DALS("""
[options]
python_requires=invalid
"""),
)
with pytest.raises(DistutilsOptionError):
with get_dist(tmpdir) as dist:
dist.parse_config_files()
saved_dist_init = _Distribution.__init__
......
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