From: Ronald Oussoren Date: Fri, 23 Jul 2010 11:48:36 +0000 (+0000) Subject: Minor tweak of test_osx_env to X-Git-Tag: v3.2a1~141 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3960c28b0b7c219eb4d5afc2ae32ebb2abb995c;p=python Minor tweak of test_osx_env to avoid failing when the framework is not yet installed. --- diff --git a/Lib/test/test_osx_env.py b/Lib/test/test_osx_env.py index 10fe020725..8b3df3783b 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)]