[Python-checkins] bpo-29585: fix test fail on macOS Framework build (GH-2928)
INADA Naoki
webhook-mailer at python.org
Fri Jul 28 08:28:23 EDT 2017
https://github.com/python/cpython/commit/ba9ddb7eea39a651ba7f1ab3eb012e4129c03620
commit: ba9ddb7eea39a651ba7f1ab3eb012e4129c03620
branch: master
author: INADA Naoki <methane at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2017-07-28T21:28:19+09:00
summary:
bpo-29585: fix test fail on macOS Framework build (GH-2928)
files:
M Lib/test/test_site.py
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index 4975a770220..99e7b4f8402 100644
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -184,8 +184,12 @@ def test_getuserbase(self):
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)")
More information about the Python-checkins
mailing list