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

Restore test that includes an environment marker.

parent 3e76534c
......@@ -207,6 +207,12 @@ class TestEggInfo(object):
assert glob.glob(os.path.join(env.paths['lib'], 'barbazquux*')) == []
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):
......
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