SVN: ZODB/trunk/src/ZEO/tests/testZEO.py Python 2.7 has os.kill but not signal.SIGKILL.
Jim Fulton <[email protected]>
| Newsgroups | gmane.comp.python.zope.zodb.cvs |
|---|---|
| Message-ID | <20100912085229.34915941C0__20448.3982445256$1284281554$gmane$org@cvs.zope.org> |
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