From 8954cd36ba4112b1d3b55cdef5e07381b9aaefd8 Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Wed, 4 Mar 2009 22:57:10 +0000 Subject: 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). --- Lib/test/test_osx_env.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Lib/test/test_osx_env.py') diff --git a/Lib/test/test_osx_env.py b/Lib/test/test_osx_env.py index 5b3f3e19fd..10fe020725 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__": -- cgit v1.2.1