[telepathy-gabble/master] exec_stream_tube_test: make one exec_tube_test call per type of socket

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon May 4 08:17:28 PDT 2009


So it's easier to catch the bugged type if a test fails.
---
 tests/twisted/tubes/tubetestutil.py |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/twisted/tubes/tubetestutil.py b/tests/twisted/tubes/tubetestutil.py
index 4075e37..4df419f 100644
--- a/tests/twisted/tubes/tubetestutil.py
+++ b/tests/twisted/tubes/tubetestutil.py
@@ -267,7 +267,5 @@ def exec_tube_test(test, *args):
             test(q, bus, conn, stream, bytestream_cls, *args))
 
 def exec_stream_tube_test(test):
-    for address_type, access_control, access_control_param in [
-            (cs.SOCKET_ADDRESS_TYPE_UNIX, cs.SOCKET_ACCESS_CONTROL_LOCALHOST, ""),
-            (cs.SOCKET_ADDRESS_TYPE_IPV4, cs.SOCKET_ACCESS_CONTROL_LOCALHOST, "")]:
-        exec_tube_test(test, address_type, access_control, access_control_param)
+    exec_tube_test(test, cs.SOCKET_ADDRESS_TYPE_UNIX, cs.SOCKET_ACCESS_CONTROL_LOCALHOST, "")
+    exec_tube_test(test, cs.SOCKET_ADDRESS_TYPE_IPV4, cs.SOCKET_ACCESS_CONTROL_LOCALHOST, "")
-- 
1.5.6.5



More information about the telepathy-commits mailing list