diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-03-31 10:40:36 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-03-31 10:40:36 -0400 |
| commit | e7a27ca0a3ba06f69836872342089e7333f24a3a (patch) | |
| tree | b7e5b6c14d2bcbd940374a3ca3eef8e40142cdc7 /pkg_resources/tests | |
| parent | 9332edbf23be5d38488957bc8043ada2f1baddaf (diff) | |
| download | python-setuptools-git-e7a27ca0a3ba06f69836872342089e7333f24a3a.tar.gz | |
Extract separate test for test_environment_markers in test_resources. Remove unused variable.
Diffstat (limited to 'pkg_resources/tests')
| -rw-r--r-- | pkg_resources/tests/test_resources.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py index 1e176771..3a8c8e54 100644 --- a/pkg_resources/tests/test_resources.py +++ b/pkg_resources/tests/test_resources.py @@ -182,8 +182,12 @@ class TestDistro: msg = 'Foo 0.9 is installed but Foo==1.2 is required' assert vc.value.report() == msg - ws = WorkingSet([]) # reset - # Environment markers are evaluated at resolution time + def test_environment_markers(self): + """ + Environment markers are evaluated at resolution time. + """ + ad = pkg_resources.Environment([]) + ws = WorkingSet([]) res = ws.resolve(parse_requirements("Foo;python_version<'2'"), ad) assert list(res) == [] |
