summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_site.py4
-rw-r--r--Lib/test/test_sysconfig.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index aff3db5..93349ed 100644
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -205,14 +205,14 @@ 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 "
"user-site (site.ENABLE_USER_SITE)")
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()
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index 9408657..5ee9839 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -296,7 +296,7 @@ class TestSysConfig(unittest.TestCase):
base = base.replace(sys.base_prefix, sys.prefix)
if HAS_USER_BASE:
user_path = get_path(name, 'posix_user')
- expected = global_path.replace(base, user, 1)
+ expected = os.path.normpath(global_path.replace(base, user, 1))
# bpo-44860: platlib of posix_user doesn't use sys.platlibdir,
# whereas posix_prefix does.
if name == 'platlib':