• Victor Stinner's avatar
    test_os: cleanup test_internal_execvpe() and os._execvpe() mockup · c2d095f4
    Victor Stinner authored
     * 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
    c2d095f4
test_os.py 35 KB