summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_osx_env.py
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-07-23 11:48:36 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2010-07-23 11:48:36 (GMT)
commitc3960c28b0b7c219eb4d5afc2ae32ebb2abb995c (patch)
tree94c832c7fab6b3afca5c0ae95f3f75c6cc7d7bcc /Lib/test/test_osx_env.py
parent3a4e50cb7e4646b046f98e67f749cdcfecf7d75a (diff)
downloadcpython-c3960c28b0b7c219eb4d5afc2ae32ebb2abb995c.zip
cpython-c3960c28b0b7c219eb4d5afc2ae32ebb2abb995c.tar.gz
cpython-c3960c28b0b7c219eb4d5afc2ae32ebb2abb995c.tar.bz2
Minor tweak of test_osx_env to
avoid failing when the framework is not yet installed.
Diffstat (limited to 'Lib/test/test_osx_env.py')
-rw-r--r--Lib/test/test_osx_env.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_osx_env.py b/Lib/test/test_osx_env.py
index 10fe020..8b3df37 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)]