diff options
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r-- | Lib/test/test_support.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 175f7c8..99a4cad 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -176,13 +176,10 @@ class TestSupport(unittest.TestCase): with support.temp_cwd() as temp_path: pid = os.fork() if pid != 0: - # parent process (child has pid == 0) + # parent process # wait for the child to terminate - (pid, status) = os.waitpid(pid, 0) - if status != 0: - raise AssertionError(f"Child process failed with exit " - f"status indication 0x{status:x}.") + support.wait_process(pid, exitcode=0) # Make sure that temp_path is still present. When the child # process leaves the 'temp_cwd'-context, the __exit__()- |