[Telepathy-commits] [telepathy-gabble/master] fix check_error_stanza

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Mar 2 04:58:58 PST 2009


---
 tests/twisted/bytestream.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/twisted/bytestream.py b/tests/twisted/bytestream.py
index 440315c..3847480 100644
--- a/tests/twisted/bytestream.py
+++ b/tests/twisted/bytestream.py
@@ -277,7 +277,7 @@ class BytestreamS5B(Bytestream):
         self.q.expect('s5b-connection-lost')
 
     def check_error_stanza(self, iq):
-        error = xpath.queryForNodes('/iq/error', iq)
+        error = xpath.queryForNodes('/iq/error', iq)[0]
         assert error['code'] == '404'
         assert error['type'] == 'cancel'
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list