def METHOD_NAME(self):
    import os
    p = subprocess.Popen([sys.executable, "-c", "import time; time.sleep(2); 42"])
    try:
        assert os.waitpid(p.pid, os.WNOHANG) == (0, 0)
    finally:
        p.kill()
        p.wait()