diff options
| author | Felix Krull <f_krull@gmx.de> | 2016-06-25 18:41:51 +0200 |
|---|---|---|
| committer | Felix Krull <f_krull@gmx.de> | 2016-06-26 01:25:53 +0200 |
| commit | 45597769a552c9bf9f7e425a6a9d3c26064841cf (patch) | |
| tree | 5a877614c642ae5e87b0a59891a18a88516f7527 /setuptools/tests/test_easy_install.py | |
| parent | a73ca4fdcd1ba386159eb6ceb66d40af674a034c (diff) | |
| download | python-setuptools-git-45597769a552c9bf9f7e425a6a9d3c26064841cf.tar.gz | |
Fix test_all_site_dirs on Windows.
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
| -rw-r--r-- | setuptools/tests/test_easy_install.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index fd06b6ef..c903d2bd 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -30,7 +30,7 @@ import setuptools.command.easy_install as ei from setuptools.command.easy_install import PthDistributions from setuptools.command import easy_install as easy_install_pkg from setuptools.dist import Distribution -from pkg_resources import working_set +from pkg_resources import normalize_path, working_set from pkg_resources import Distribution as PRDistribution import setuptools.tests.server import pkg_resources @@ -123,9 +123,10 @@ class TestEasyInstallTest: get_site_dirs should always return site dirs reported by site.getsitepackages. """ - mock_gsp = lambda: ['/setuptools/test/site-packages'] + path = normalize_path('/setuptools/test/site-packages') + mock_gsp = lambda: [path] monkeypatch.setattr(site, 'getsitepackages', mock_gsp, raising=False) - assert '/setuptools/test/site-packages' in ei.get_site_dirs() + assert path in ei.get_site_dirs() def test_all_site_dirs_works_without_getsitepackages(self, monkeypatch): monkeypatch.delattr(site, 'getsitepackages', raising=False) |
