tests/test-fncache.t
changeset 51993 3f70ea5bcaeb
parent 51902 0f26ee69cf36
child 53005 8c85d139ff64
--- a/tests/test-fncache.t	Sat Oct 12 16:06:37 2024 -0400
+++ b/tests/test-fncache.t	Sat Oct 12 16:35:03 2024 -0400
@@ -304,7 +304,7 @@
 
   $ cat > ../exceptionext.py <<EOF
   > import os
-  > import signal
+  > from mercurial.testing import ps_util
   > from mercurial import (
   >   commands,
   >   error,
@@ -316,7 +316,7 @@
   > def trwrapper(orig, self, *args, **kwargs):
   >     tr = orig(self, *args, **kwargs)
   >     def fail(tr):
-  >         os.kill(os.getpid(), signal.SIGKILL)
+  >         ps_util.kill(os.getpid())
   >     # zzz prefix to ensure it sorted after store.write
   >     tr.addfinalize(b'zzz-forcefails', fail)
   >     return tr