diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-06-17 22:28:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-17 22:28:23 (GMT) |
commit | b1ae4af5e82e7275cebcfb383690b816a388a785 (patch) | |
tree | 3e4b591fd97fe590f49d905b5d2ad41ff919856e /Lib/test/test_site.py | |
parent | 71354adff07f8beba8374767532bb9da34546e66 (diff) | |
download | cpython-b1ae4af5e82e7275cebcfb383690b816a388a785.zip cpython-b1ae4af5e82e7275cebcfb383690b816a388a785.tar.gz cpython-b1ae4af5e82e7275cebcfb383690b816a388a785.tar.bz2 |
GH-77403: Fix tests which fail when PYTHONUSERBASE is not normalized (GH-93917)
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r-- | Lib/test/test_site.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index e66a2db..6822579 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -205,7 +205,7 @@ class HelperFunctionsTests(unittest.TestCase): scheme = 'osx_framework_user' else: scheme = os.name + '_user' - self.assertEqual(site._get_path(site._getuserbase()), + self.assertEqual(os.path.normpath(site._get_path(site._getuserbase())), sysconfig.get_path('purelib', scheme)) @unittest.skipUnless(site.ENABLE_USER_SITE, "requires access to PEP 370 " @@ -213,7 +213,7 @@ class HelperFunctionsTests(unittest.TestCase): @support.requires_subprocess() def test_s_option(self): # (ncoghlan) Change this to use script_helper... - usersite = site.USER_SITE + usersite = os.path.normpath(site.USER_SITE) self.assertIn(usersite, sys.path) env = os.environ.copy() |