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

ronald.oussoren python-checkins at python.org
Fri Jul 23 13:48:36 CEST 2010


Author: ronald.oussoren
Date: Fri Jul 23 13:48:36 2010
New Revision: 83073

Log:
Minor tweak of test_osx_env to 
avoid failing when the framework is not
yet installed.


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	Fri Jul 23 13:48:36 2010
@@ -8,7 +8,7 @@
 import unittest
 
 class OSXEnvironmentVariableTestCase(unittest.TestCase):
-    def _check_sys(self, ev, cond, sv, val = '/some/path/to/python'):
+    def _check_sys(self, ev, cond, sv, val = sys.executable + 'dummy'):
         with EnvironmentVarGuard() as evg:
             subpc = [str(sys.executable), '-c',
                 'import sys; sys.exit(2 if "%s" %s %s else 3)' % (val, cond, sv)]


More information about the Python-checkins mailing list