The 1s timeout used here has become flaky with the introduction of a
sleep (before the timeout even starts).
os.kill(subproc.pid, signal.SIGTERM)
try:
- ret = self.wait(timeout=1.0)
+ ret = self.wait()
except AssertionError:
# We failed to get the termination signal. This test is
# occasionally flaky on pypy, so try to get a little more
fut = subproc.stdout.read_until_close()
fut.add_done_callback(lambda f: self.stop()) # type: ignore
try:
- self.wait(timeout=1.0)
+ self.wait()
except AssertionError:
raise AssertionError("subprocess failed to terminate")
else: