[telepathy-gabble/master] test-wait-for-caps-incomplete.py: don't crash if the test fails at the end

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Jan 7 04:59:49 PST 2010


It was using a nonexistent object as the assertion message.
---
 .../jingle/test-wait-for-caps-incomplete.py        |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tests/twisted/jingle/test-wait-for-caps-incomplete.py b/tests/twisted/jingle/test-wait-for-caps-incomplete.py
index 818bce0..8b37180 100644
--- a/tests/twisted/jingle/test-wait-for-caps-incomplete.py
+++ b/tests/twisted/jingle/test-wait-for-caps-incomplete.py
@@ -50,7 +50,8 @@ def test(q, bus, conn, stream):
         [EventPattern('dbus-error', method='RequestStreams')])
 
     # RequestStreams should now return NotAvailable
-    assert before_events[0].error.get_dbus_name() == cs.NOT_AVAILABLE, event.error
+    assert before_events[0].error.get_dbus_name() == cs.NOT_AVAILABLE, \
+            before_events[0].error
 
 if __name__ == '__main__':
     exec_test(test, timeout=10)
-- 
1.5.6.5




More information about the telepathy-commits mailing list