[Checkins] SVN: zc.ngi/trunk/src/zc/ngi/async.txt Added a missing event.clear to avoid spurious test failures.
Jim Fulton
jim at zope.com
Tue Apr 14 11:07:02 EDT 2009
Log message for revision 99168:
Added a missing event.clear to avoid spurious test failures.
Changed:
U zc.ngi/trunk/src/zc/ngi/async.txt
-=-
Modified: zc.ngi/trunk/src/zc/ngi/async.txt
===================================================================
--- zc.ngi/trunk/src/zc/ngi/async.txt 2009-04-14 13:49:59 UTC (rev 99167)
+++ zc.ngi/trunk/src/zc/ngi/async.txt 2009-04-14 15:07:02 UTC (rev 99168)
@@ -143,6 +143,8 @@
>>> loghandler.clear()
+ >>> event.clear()
+
>>> class LameClientConnectionHandler:
... def connected(self, connection):
... connection.setHandler(self)
@@ -154,6 +156,7 @@
... def handle_close(self, conection, reason):
... self.closed = reason
... event.set()
+
>>> handler = LameClientConnectionHandler()
>>> _ = zc.ngi.async.connector(addr, handler)
>>> event.wait(1)
More information about the Checkins
mailing list