diff options
author | lorddavidiii <lorddavidiii@qi0.de> | 2023-03-27 19:03:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 20:03:46 +0100 |
commit | d89475934c2eefbea75f370726f0865e5235834f (patch) | |
tree | 2ba64cafdaf447dc9b297d4a34cbe9e7890d6943 /tests | |
parent | 78ab4cf071fcbda8af83d6b03be57c27a7008da7 (diff) | |
download | pip-d89475934c2eefbea75f370726f0865e5235834f.tar.gz |
Norm path before compare (#11719)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_wheel.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/test_wheel.py b/tests/unit/test_wheel.py index 059f382b2..6d6d1a3dc 100644 --- a/tests/unit/test_wheel.py +++ b/tests/unit/test_wheel.py @@ -588,6 +588,12 @@ class TestMessageAboutScriptsNotOnPATH: ) assert retval is None + def test_PATH_check_path_normalization(self) -> None: + retval = self._template( + paths=["/a/./b/../b//c/", "/d/e/bin"], scripts=["/a/b/c/foo"] + ) + assert retval is None + def test_single_script__single_dir_on_PATH(self) -> None: retval = self._template(paths=["/a/b", "/c/d/bin"], scripts=["/a/b/foo"]) assert retval is None |