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:
Brett Cannon 2010-05-13 23:59:41 +00:00
parent b3d0554040
commit da9af75d5f
2 changed files with 10 additions and 1 deletions

View File

@ -182,7 +182,8 @@ class HelperFunctionsTests(unittest.TestCase):
self.assertEquals(dirs[1], wanted) self.assertEquals(dirs[1], wanted)
# let's try the specific Apple location # 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'] site.PREFIXES = ['Python.framework']
dirs = site.getsitepackages() dirs = site.getsitepackages()
self.assertEqual(len(dirs), 4) self.assertEqual(len(dirs), 4)

View File

@ -21,6 +21,14 @@ Extension Modules
- Issue #8674: Fixed a number of incorrect or undefined-behaviour-inducing - Issue #8674: Fixed a number of incorrect or undefined-behaviour-inducing
overflow checks in the audioop module. overflow checks in the audioop module.
Tests
-----
- On darwin, test_site assumed that a framework build was being used, leading
to a failure where four directories were expected for site-packages instead
of two in a non-framework build.
What's New in Python 2.7 beta 2? What's New in Python 2.7 beta 2?
================================ ================================