summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_osx_env.py
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-03-04 22:57:10 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-03-04 22:57:10 (GMT)
commit8954cd36ba4112b1d3b55cdef5e07381b9aaefd8 (patch)
tree5d914fb85dec996df0332e611e6ee961b1d0c989 /Lib/test/test_osx_env.py
parent5f734f1b136529a3a17a3eff12cbad72c056f6e1 (diff)
downloadcpython-8954cd36ba4112b1d3b55cdef5e07381b9aaefd8.zip
cpython-8954cd36ba4112b1d3b55cdef5e07381b9aaefd8.tar.gz
cpython-8954cd36ba4112b1d3b55cdef5e07381b9aaefd8.tar.bz2
Fix for issue #5408. This only enables test_osx_env when the current build
is actually a framework build on OSX (the only environment where this test is valid).
Diffstat (limited to 'Lib/test/test_osx_env.py')
-rw-r--r--Lib/test/test_osx_env.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_osx_env.py b/Lib/test/test_osx_env.py
index 5b3f3e1..10fe020 100644
--- a/Lib/test/test_osx_env.py
+++ b/Lib/test/test_osx_env.py
@@ -27,7 +27,9 @@ class OSXEnvironmentVariableTestCase(unittest.TestCase):
self._check_sys('PYTHONEXECUTABLE', '==', 'sys.executable')
def test_main():
- if sys.platform == 'darwin':
+ from distutils import sysconfig
+
+ if sys.platform == 'darwin' and sysconfig.get_config_var('WITH_NEXT_FRAMEWORK'):
run_unittest(OSXEnvironmentVariableTestCase)
if __name__ == "__main__":