diff options
author | Lance Stout <lancestout@gmail.com> | 2011-05-31 12:48:43 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-06-01 15:17:22 -0700 |
commit | 8aa4396e4490a964e3e1b1a5e6f555e97c16fd3d (patch) | |
tree | ed58dc66611c99710a404fe5795f9f3d4364f777 /tests/test_stream_handlers.py | |
parent | 14693233504383d4df0ed092c870d5d7baea6538 (diff) | |
download | slixmpp-8aa4396e4490a964e3e1b1a5e6f555e97c16fd3d.tar.gz slixmpp-8aa4396e4490a964e3e1b1a5e6f555e97c16fd3d.tar.bz2 slixmpp-8aa4396e4490a964e3e1b1a5e6f555e97c16fd3d.tar.xz slixmpp-8aa4396e4490a964e3e1b1a5e6f555e97c16fd3d.zip |
Begin experimental use of exceptions.
Provides IqTimeout and IqError which are raised when an Iq response
does not arrive in time, or it arrives with type='error'.
Diffstat (limited to 'tests/test_stream_handlers.py')
-rw-r--r-- | tests/test_stream_handlers.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_stream_handlers.py b/tests/test_stream_handlers.py index dae4456d..1b831e21 100644 --- a/tests/test_stream_handlers.py +++ b/tests/test_stream_handlers.py @@ -90,7 +90,10 @@ class TestHandlers(SleekTest): iq['id'] = 'test2' iq['type'] = 'set' iq['query'] = 'test2' - reply = iq.send(block=True, timeout=0) + try: + reply = iq.send(block=True, timeout=0) + except IqTimeout: + pass self.xmpp.add_event_handler('message', waiter_handler, threaded=True) |