mirror of https://github.com/python/cpython
bpo-29585: fix test fail on macOS Framework build (GH-2928)
This commit is contained in:
parent
c22bd58d93
commit
ba9ddb7eea
|
@ -184,8 +184,12 @@ class HelperFunctionsTests(unittest.TestCase):
|
|||
self.assertEqual(site._getuserbase(), sysconfig._getuserbase())
|
||||
|
||||
def test_get_path(self):
|
||||
if sys.platform == 'darwin' and sys._framework:
|
||||
scheme = 'osx_framework_user'
|
||||
else:
|
||||
scheme = os.name + '_user'
|
||||
self.assertEqual(site._get_path(site._getuserbase()),
|
||||
sysconfig.get_path('purelib', os.name + '_user'))
|
||||
sysconfig.get_path('purelib', scheme))
|
||||
|
||||
@unittest.skipUnless(site.ENABLE_USER_SITE, "requires access to PEP 370 "
|
||||
"user-site (site.ENABLE_USER_SITE)")
|
||||
|
|
Loading…
Reference in New Issue