summaryrefslogtreecommitdiff
path: root/Lib/test/test_site.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r--Lib/test/test_site.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index 904bcef780..5695cd734d 100644
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -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)