mercurial/testing/ps_util.py
changeset 52350 d4e30c15626d
parent 51992 625cf9621551
equal deleted inserted replaced
52349:662b08ac9869 52350:d4e30c15626d
     1 # This python code can be imported into tests in order to terminate a process
     1 # This python code can be imported into tests in order to terminate a process
     2 # with signal.SIGKILL on posix, or a roughly equivalent procedure on Windows.
     2 # with signal.SIGKILL on posix, or a roughly equivalent procedure on Windows.
       
     3 
       
     4 from __future__ import annotations
       
     5 
     3 import os
     6 import os
     4 import signal
     7 import signal
     5 import subprocess
     8 import subprocess
     6 import sys
     9 import sys
     7 import tempfile
    10 import tempfile