summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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__":