SVN: ZODB/trunk/src/ZEO/tests/testZEO.py Fixed runzeo_logrotate_on_sigusr2 to work with Python 2.5.
Jim Fulton <[email protected]> Fri, 24 Sep 2010 16:18:13 -0400 (EDT)
| Newsgroups | gmane.comp.python.zope.zodb.cvs |
|---|---|
| Message-ID | <20100924201813.B402F80270D__8748.15410138599$1285359503$gmane$org@cvs.zope.org> |
Log message for revision 116793:
Fixed runzeo_logrotate_on_sigusr2 to work with Python 2.5.
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-24 19:40:01 UTC (rev 116792)
+++ ZODB/trunk/src/ZEO/tests/testZEO.py 2010-09-24 20:18:13 UTC (rev 116793)
@@ -1518,7 +1518,7 @@
>>> oldlog = open('l').read()
>>> os.rename('l', 'o')
- >>> p.send_signal(signal.SIGUSR2)
+ >>> os.kill(p.pid, signal.SIGUSR2)
>>> wait_until('new file', lambda : os.path.exists('l'))
>>> s = ClientStorage(port)
@@ -1529,7 +1529,7 @@
# Cleanup:
- >>> p.kill()
+ >>> os.kill(p.pid, signal.SIGKILL)
>>> _ = p.wait()
"""