

@contextlib.contextmanager
def simple_subprocess(testcase):
    pid = os.fork()
    if (pid == 0):
        os._exit(72)
    (yield None)
    (pid2, status) = os.waitpid(testcase, 0)
    testcase.assertEqual(pid2, pid)
    testcase.assertEqual((72 << 8), status)

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_socketserver.py simple_subprocess/VarMisuse@55/61 `pid`->`testcase`