diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2017-07-28 12:28:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-28 12:28:19 (GMT) |
commit | ba9ddb7eea39a651ba7f1ab3eb012e4129c03620 (patch) | |
tree | fbca33d4c0a4d55f16d2e60a6e5adfff77bf0d09 /Lib/test/test_site.py | |
parent | c22bd58d933efaec26d1f77f263b2845473b7e15 (diff) | |
download | cpython-ba9ddb7eea39a651ba7f1ab3eb012e4129c03620.zip cpython-ba9ddb7eea39a651ba7f1ab3eb012e4129c03620.tar.gz cpython-ba9ddb7eea39a651ba7f1ab3eb012e4129c03620.tar.bz2 |
bpo-29585: fix test fail on macOS Framework build (GH-2928)
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r-- | Lib/test/test_site.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 4975a77..99e7b4f 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -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)") |