diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 09:48:55 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 09:48:55 -0500 |
| commit | 292d4db0eb5c7591eed972ed9085362167816de0 (patch) | |
| tree | 3cba412642f666d3679d6d07cbf5a68402ff0abf | |
| parent | 10197f6d76a56d358236ceb35435d3789d0fd2b0 (diff) | |
| download | python-setuptools-git-292d4db0eb5c7591eed972ed9085362167816de0.tar.gz | |
Rewrite test to remove Windows-specific handling and instead capture the underlying expectation.
| -rw-r--r-- | setuptools/tests/test_easy_install.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index bb6b7fc5..a8f274d5 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -114,10 +114,9 @@ class TestPTHFileWriter(unittest.TestCase): self.assertTrue(pth.dirty) def test_add_from_site_is_ignored(self): - if os.name != 'nt': - location = '/test/location/does-not-have-to-exist' - else: - location = 'c:\\does_not_exist' + location = '/test/location/does-not-have-to-exist' + # PthDistributions expects all locations to be normalized + location = pkg_resources.normalize_path(location) pth = PthDistributions('does-not_exist', [location, ]) self.assertTrue(not pth.dirty) pth.add(PRDistribution(location)) |
