summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_egg_info.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-07-13 20:58:19 -0400
committerJason R. Coombs <jaraco@jaraco.com>2017-07-13 20:58:19 -0400
commite82eadd1ff76b9aa3d5a8e472f48c054a296d8fe (patch)
treef79485fac9089ed1479e74acc11decf0b6ef8293 /setuptools/tests/test_egg_info.py
parent3e76534c33f185b5df01838233f0d7af4ba4f61b (diff)
downloadpython-setuptools-git-e82eadd1ff76b9aa3d5a8e472f48c054a296d8fe.tar.gz
Restore test that includes an environment marker.
Diffstat (limited to 'setuptools/tests/test_egg_info.py')
-rw-r--r--setuptools/tests/test_egg_info.py6
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)