diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2019-09-11 16:39:57 +0100 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2019-09-11 16:39:57 +0100 |
| commit | ca0ee009f81a460b483c7e451e58dfdcd7787045 (patch) | |
| tree | 7ab0ecf3565faefd8e1feda6dec059c2fe1dda25 /setuptools/tests | |
| parent | cb64d3a84fab15aacbdf31a0a5632690ca9f49b2 (diff) | |
| download | external_python_setuptools-ca0ee009f81a460b483c7e451e58dfdcd7787045.tar.gz external_python_setuptools-ca0ee009f81a460b483c7e451e58dfdcd7787045.tar.bz2 external_python_setuptools-ca0ee009f81a460b483c7e451e58dfdcd7787045.zip | |
Add test capturing failure. Ref #1787.
Diffstat (limited to 'setuptools/tests')
| -rw-r--r-- | setuptools/tests/test_config.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/setuptools/tests/test_config.py b/setuptools/tests/test_config.py index bc97664d..42187138 100644 --- a/setuptools/tests/test_config.py +++ b/setuptools/tests/test_config.py @@ -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__ |
