Untitled


SUBMITTED BY: antoineh1

DATE: May 8, 2016, 2:13 p.m.

FORMAT: Text only

SIZE: 139 Bytes

HITS: 4851

  1. import subprocess
  2. import signal
  3. p = subprocess.Popen(["sleep", "3600"])
  4. p.send_signal(signal.SIGINT)
  5. ret = p.wait()
  6. assert ret == -2

comments powered by Disqus