diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-13 20:58:19 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-13 20:58:19 -0400 |
| commit | e82eadd1ff76b9aa3d5a8e472f48c054a296d8fe (patch) | |
| tree | f79485fac9089ed1479e74acc11decf0b6ef8293 /setuptools/tests | |
| parent | 3e76534c33f185b5df01838233f0d7af4ba4f61b (diff) | |
| download | python-setuptools-git-e82eadd1ff76b9aa3d5a8e472f48c054a296d8fe.tar.gz | |
Restore test that includes an environment marker.
Diffstat (limited to 'setuptools/tests')
| -rw-r--r-- | setuptools/tests/test_egg_info.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py index 55df4489..51648fff 100644 --- a/setuptools/tests/test_egg_info.py +++ b/setuptools/tests/test_egg_info.py @@ -208,6 +208,12 @@ class TestEggInfo(object): def test_extras_require_with_markers(self, tmpdir_cwd, env): self._setup_script_with_requires( + """extras_require={":python_version<'2'": ["barbazquux"]},""") + self._run_install_command(tmpdir_cwd, env) + assert glob.glob(os.path.join(env.paths['lib'], 'barbazquux*')) == [] + + def test_extras_require_with_markers_in_req(self, tmpdir_cwd, env): + self._setup_script_with_requires( """extras_require={"extra": ["barbazquux; python_version<'2'"]},""") with pytest.raises(AssertionError): self._run_install_command(tmpdir_cwd, env) |
