2 files changed
@@ -206,15 +206,15 @@ def test_get_path(self): | |||
| 206 | 206 | scheme = 'osx_framework_user' | |
| 207 | 207 | else: | |
| 208 | 208 | scheme = os.name + '_user' | |
| 209 | - self.assertEqual(site._get_path(site._getuserbase()), | ||
| 209 | + self.assertEqual(os.path.normpath(site._get_path(site._getuserbase())), | ||
| 210 | 210 | sysconfig.get_path('purelib', scheme)) | |
| 211 | 211 | ||
| 212 | 212 | @unittest.skipUnless(site.ENABLE_USER_SITE, "requires access to PEP 370 " | |
| 213 | 213 | "user-site (site.ENABLE_USER_SITE)") | |
| 214 | 214 | @support.requires_subprocess() | |
| 215 | 215 | def test_s_option(self): | |
| 216 | 216 | # (ncoghlan) Change this to use script_helper... | |
| 217 | - usersite = site.USER_SITE | ||
| 217 | + usersite = os.path.normpath(site.USER_SITE) | ||
| 218 | 218 | self.assertIn(usersite, sys.path) | |
| 219 | 219 | ||
| 220 | 220 | env = os.environ.copy() | |
@@ -370,7 +370,7 @@ def test_user_similar(self): | |||
| 370 | 370 | base = base.replace(sys.base_prefix, sys.prefix) | |
| 371 | 371 | if HAS_USER_BASE: | |
| 372 | 372 | user_path = get_path(name, 'posix_user') | |
| 373 | - expected = global_path.replace(base, user, 1) | ||
| 373 | + expected = os.path.normpath(global_path.replace(base, user, 1)) | ||
| 374 | 374 | # bpo-44860: platlib of posix_user doesn't use sys.platlibdir, | |
| 375 | 375 | # whereas posix_prefix does. | |
| 376 | 376 | if name == 'platlib': | |
0 commit comments