]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
test_os: cleanup test_internal_execvpe() and os._execvpe() mockup
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 17 May 2010 00:14:53 +0000 (00:14 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 17 May 2010 00:14:53 +0000 (00:14 +0000)
commitc2d095f4942408bbd85d934479ff049689b682cf
tree58f0740f2d50b6eebc3e15294880006fbbfd0c5a
parent304740635b6066d11850a36c46991fcea4cdb800
test_os: cleanup test_internal_execvpe() and os._execvpe() mockup

 * Replace os.defpath instead of os.get_exec_path() to test also
   os.get_exec_path()
 * Use contextlib.contextmanager, move the mockup outside the class, and
   the mockup returns directly the call list object
 * Use two different contexts for the two tests
 * Use more revelant values and names
Lib/test/test_os.py