diff options
author | Tzu-ping Chung <uranusjr@gmail.com> | 2018-10-24 09:52:56 +0800 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-10-25 10:22:44 -0400 |
commit | 092ef22af1fa4d52fc0f956bfa691c2d9244cb47 (patch) | |
tree | 12782835987321b2ec8de1d666346823df55c346 | |
parent | 8c22c3b5ac0a5a293b03b79686e53f885d71cba4 (diff) | |
download | python-setuptools-git-pr/1521.tar.gz |
Add test for #1519 demonstrating failure.pr/1521
-rw-r--r-- | pkg_resources/tests/test_pkg_resources.py | 5 |
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 |