Commit 54808e01 authored by Jim Fulton's avatar Jim Fulton

Python 2.7 has os.kill but not signal.SIGKILL.

parent 4764f7c1
...@@ -484,7 +484,7 @@ class HeartbeatTests(ZEO.tests.ConnectionTests.CommonSetupTearDown): ...@@ -484,7 +484,7 @@ class HeartbeatTests(ZEO.tests.ConnectionTests.CommonSetupTearDown):
) )
self._dostore() self._dostore()
if hasattr(os, 'kill'): if hasattr(os, 'kill') and hasattr(signal, 'SIGKILL'):
# Kill server violently, in hopes of provoking problem # Kill server violently, in hopes of provoking problem
os.kill(self._pids[0], signal.SIGKILL) os.kill(self._pids[0], signal.SIGKILL)
self._servers[0] = None self._servers[0] = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment