From ba9ddb7eea39a651ba7f1ab3eb012e4129c03620 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Fri, 28 Jul 2017 21:28:19 +0900 Subject: bpo-29585: fix test fail on macOS Framework build (GH-2928) --- Lib/test/test_site.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)") -- cgit v0.12