summaryrefslogtreecommitdiff
path: root/pkg_resources/tests
diff options
context:
space:
mode:
authorTzu-ping Chung <uranusjr@gmail.com>2018-10-24 09:52:56 +0800
committerTzu-ping Chung <uranusjr@gmail.com>2018-10-25 00:36:03 +0800
commit84f1abafd3a707b464f039892ef48b9e282d0d4a (patch)
treee8d1242183c0b4ca431b8426cf173c66e60d0d23 /pkg_resources/tests
parent8c22c3b5ac0a5a293b03b79686e53f885d71cba4 (diff)
downloadpython-setuptools-git-84f1abafd3a707b464f039892ef48b9e282d0d4a.tar.gz
Call os.path.normpath to normalize paths for comp
Diffstat (limited to 'pkg_resources/tests')
-rw-r--r--pkg_resources/tests/test_pkg_resources.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg_resources/tests/test_pkg_resources.py b/pkg_resources/tests/test_pkg_resources.py
index 62a39b8f..81b67a31 100644
--- a/pkg_resources/tests/test_pkg_resources.py
+++ b/pkg_resources/tests/test_pkg_resources.py
@@ -236,3 +236,8 @@ class TestDeepVersionLookupDistutils:
req = pkg_resources.Requirement.parse('foo>=1.9')
dist = pkg_resources.WorkingSet([env.paths['lib']]).find(req)
assert dist.version == version
+
+ def test_normalize_path(self, tmpdir):
+ path = str(tmpdir)
+ expected = os.path.normcase(os.path.normpath(os.path.realpath(path)))
+ assert pkg_resources.normalize_path(path) == expected