Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Got tests passing with Python 2.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Jul 5, 2010
1 parent 0bed776 commit f7d700e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/zc/ngi/async.txt
Expand Up @@ -132,7 +132,7 @@ we'll use the blocking interface:

>>> handler = LameClientConnectionHandler()
>>> zc.ngi.async.connect(addr, handler)
>>> event.wait(1)
>>> _ = event.wait(1)

>>> print loghandler
zc.ngi.async.client ERROR
Expand All @@ -159,7 +159,7 @@ we'll use the blocking interface:

>>> handler = LameClientConnectionHandler()
>>> zc.ngi.async.connect(addr, handler)
>>> event.wait(1)
>>> _ = event.wait(1)

>>> print loghandler
zc.ngi.async.client ERROR
Expand Down
8 changes: 4 additions & 4 deletions src/zc/ngi/tests.py
Expand Up @@ -199,7 +199,7 @@ def async_error_in_client_when_conection_is_closed():
>>> connector = Connector()
>>> zc.ngi.async.connect(listener.address, connector)
>>> connector.event.wait(1)
>>> _ = connector.event.wait(1)
OK, we've connected. If we close the connection, we won't be able to write:
Expand All @@ -212,9 +212,9 @@ def async_error_in_client_when_conection_is_closed():
>>> connector = Connector()
>>> zc.ngi.async.connect(listener.address, connector)
>>> connector.event.wait(1)
>>> _ = connector.event.wait(1)
>>> connector.conn.write('aaa'); server_event.wait(1)
>>> connector.conn.write('aaa'); _ = server_event.wait(1)
aaa
>>> connector.conn.write('xxx')
Expand Down Expand Up @@ -348,7 +348,7 @@ def async_handling_iteration_errors():
... print 'closed', reason
... event.set()
>>> zc.ngi.async.connect(listener.address, Bad()); event.wait(1)
>>> zc.ngi.async.connect(listener.address, Bad()); _ = event.wait(1)
closed Bad instance has no attribute 'handle_exception'
>>> listener.close()
Expand Down

0 comments on commit f7d700e

Please sign in to comment.