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