[Telepathy-commits] [telepathy-gabble/master] exec_tube_test: use a for and lambda
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Tue Mar 17 09:43:13 PDT 2009
---
tests/twisted/tubes/tubetestutil.py | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/tests/twisted/tubes/tubetestutil.py b/tests/twisted/tubes/tubetestutil.py
index d3df579..3f4638e 100644
--- a/tests/twisted/tubes/tubetestutil.py
+++ b/tests/twisted/tubes/tubetestutil.py
@@ -220,15 +220,5 @@ def set_up_echo(name):
return full_path
def exec_tube_test(test):
- def test_ibb(q, bus, conn, stream):
- test(q, bus, conn, stream, BytestreamIBB)
-
- def test_socks5(q, bus, conn, stream):
- test(q, bus, conn, stream, BytestreamS5B)
-
- def test_si_fallback(q, bus, conn, stream):
- test(q, bus, conn, stream, BytestreamSIFallbackS5CannotConnect)
-
- exec_test(test_ibb)
- exec_test(test_socks5)
- exec_test(test_si_fallback)
+ for bytestream_cls in [BytestreamIBB, BytestreamS5B, BytestreamSIFallbackS5CannotConnect]:
+ exec_test(lambda q, bus, conn, stream: test(q, bus, conn, stream, bytestream_cls))
--
1.5.6.5
More information about the telepathy-commits
mailing list