From f1ece52985d24d734462f96e8a33db8ced771fdb Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Tue, 20 Sep 2011 15:50:28 +0100 Subject: jingle/google-relay: use functools.partial --- tests/twisted/jingle/google-relay.py | 4 ++-- 1 file 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__': -- cgit v1.2.3