[Python-checkins] r80055 - python/branches/py3k-issue4970/Lib/test/test_os.py
mark.dickinson
python-checkins at python.org
Tue Apr 13 16:32:55 CEST 2010
Author: mark.dickinson
Date: Tue Apr 13 16:32:55 2010
New Revision: 80055
Log:
Reduce Python example further.
Modified:
python/branches/py3k-issue4970/Lib/test/test_os.py
Modified: python/branches/py3k-issue4970/Lib/test/test_os.py
==============================================================================
--- python/branches/py3k-issue4970/Lib/test/test_os.py (original)
+++ python/branches/py3k-issue4970/Lib/test/test_os.py Tue Apr 13 16:32:55 2010
@@ -589,13 +589,10 @@
class ExecTests(unittest.TestCase):
def test_execvpe_with_bad_program(self):
- for dir in os.environ.get('PATH', os.defpath).split(os.pathsep):
- fullname = os.path.join(dir, 'no such app-')
- try:
- print("os.execv({!r}, ['no such app-'])".format(fullname))
- os.execv(fullname, ['no such app-'])
- except OSError:
- pass
+ try:
+ os.execv('/usr/bin/dorothyq', ['dorothyq'])
+ except OSError:
+ pass
def XXXtest_execvpe_with_bad_arglist(self):
self.assertRaises(ValueError, os.execvpe, 'notepad', [], None)
More information about the Python-checkins
mailing list