mirror of https://github.com/python/cpython
Merged revisions 81152 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81152 | brett.cannon | 2010-05-13 16:59:41 -0700 (Thu, 13 May 2010) | 3 lines 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
f9a444223c
commit
bbb2d492bc
|
@ -181,7 +181,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…
Reference in New Issue