[Python-checkins] r70179 - python/branches/py3k/Lib/test/test_osx_env.py

ronald.oussoren python-checkins at python.org
Wed Mar 4 23:57:10 CET 2009


Author: ronald.oussoren
Date: Wed Mar  4 23:57:10 2009
New Revision: 70179

Log:
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).


Modified:
   python/branches/py3k/Lib/test/test_osx_env.py

Modified: python/branches/py3k/Lib/test/test_osx_env.py
==============================================================================
--- python/branches/py3k/Lib/test/test_osx_env.py	(original)
+++ python/branches/py3k/Lib/test/test_osx_env.py	Wed Mar  4 23:57:10 2009
@@ -27,7 +27,9 @@
         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__":


More information about the Python-checkins mailing list