mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
test_site was failing under darwin for non-framework builds because a test was
assuming framework-specific site-packages directories were being used.
This commit is contained in:
parent
b3d0554040
commit
da9af75d5f
2 changed files with 10 additions and 1 deletions
|
@ -182,7 +182,8 @@ class HelperFunctionsTests(unittest.TestCase):
|
|||
self.assertEquals(dirs[1], wanted)
|
||||
|
||||
# let's try the specific Apple location
|
||||
if sys.platform == "darwin":
|
||||
if (sys.platform == "darwin" and
|
||||
sysconfig.get_config_var("PYTHONFRAMEWORK")):
|
||||
site.PREFIXES = ['Python.framework']
|
||||
dirs = site.getsitepackages()
|
||||
self.assertEqual(len(dirs), 4)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue