summaryrefslogtreecommitdiff
path: root/tests/twisted
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-09-20 15:50:28 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-09-20 16:04:55 +0100
commitf1ece52985d24d734462f96e8a33db8ced771fdb (patch)
tree0be345437012bd9c10cbca53d9825b2d45e2465f /tests/twisted
parent114a25a2cb9a1f57560cca30bddfeaeaeec0e3b6 (diff)
jingle/google-relay: use functools.partial
Diffstat (limited to 'tests/twisted')
-rw-r--r--tests/twisted/jingle/google-relay.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/twisted/jingle/google-relay.py b/tests/twisted/jingle/google-relay.py
index 419b9712..d93a152d 100644
--- a/tests/twisted/jingle/google-relay.py
+++ b/tests/twisted/jingle/google-relay.py
@@ -2,6 +2,7 @@
Test getting relay from Google jingleinfo
"""
+from functools import partial
from gabbletest import exec_test, make_result_iq, sync_stream, \
GoogleXmlStream, disconnect_conn
from servicetest import make_channel_proxy, \
@@ -367,8 +368,7 @@ def test_too_slow(q, bus, conn, stream, req1, req2, media_chan, too_slow):
def exec_relay_test(incoming, too_slow=None):
exec_test(
- lambda q, b, c, s:
- test(q, b, c, s, incoming=incoming, too_slow=too_slow),
+ partial(test, incoming=incoming, too_slow=too_slow),
protocol=GoogleXmlStream)
if __name__ == '__main__':