From c3960c28b0b7c219eb4d5afc2ae32ebb2abb995c Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Fri, 23 Jul 2010 11:48:36 +0000 Subject: [PATCH] Minor tweak of test_osx_env to avoid failing when the framework is not yet installed. --- Lib/test/test_osx_env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_osx_env.py b/Lib/test/test_osx_env.py index 10fe0207253..8b3df3783bd 100644 --- a/Lib/test/test_osx_env.py +++ b/Lib/test/test_osx_env.py @@ -8,7 +8,7 @@ import sys 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)]