Commit 49abd05d authored by Ronald Oussoren's avatar Ronald Oussoren

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).
parent 5fd3ecb9
......@@ -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__":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment