[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/testZEO.py Python 2.7 has os.kill but not signal.SIGKILL.

Jim Fulton jim at zope.com
Sun Sep 12 04:52:29 EDT 2010


Log message for revision 116301:
  Python 2.7 has os.kill but not signal.SIGKILL.
  

Changed:
  U   ZODB/trunk/src/ZEO/tests/testZEO.py

-=-
Modified: ZODB/trunk/src/ZEO/tests/testZEO.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/testZEO.py	2010-09-11 23:29:40 UTC (rev 116300)
+++ ZODB/trunk/src/ZEO/tests/testZEO.py	2010-09-12 08:52:28 UTC (rev 116301)
@@ -484,7 +484,7 @@
                           )
         self._dostore()
 
-        if hasattr(os, 'kill'):
+        if hasattr(os, 'kill') and hasattr(signal, 'SIGKILL'):
             # Kill server violently, in hopes of provoking problem
             os.kill(self._pids[0], signal.SIGKILL)
             self._servers[0] = None



More information about the Zodb-checkins mailing list