From 0b689929da8bcd5e968d50a148d298c744874ff6 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 22 Jul 2008 16:55:44 +0000 Subject: roster/ tests: use "while True" instead of "while 1" 20080722165544-53eee-2f0c8bc72b10ad0c5e7eff6bf7d5df912a78cd36.gz --- tests/twisted/roster/test-google-roster.py | 4 ++-- tests/twisted/roster/test-roster-subscribe.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/twisted/roster/test-google-roster.py b/tests/twisted/roster/test-google-roster.py index 2fb87abbc..d36aff27e 100644 --- a/tests/twisted/roster/test-google-roster.py +++ b/tests/twisted/roster/test-google-roster.py @@ -32,7 +32,7 @@ def test(q, bus, conn, stream): event.stanza['type'] = 'result' stream.send(event.stanza) - while 1: + while True: event = q.expect('dbus-signal', signal='NewChannel') path, type, handle_type, handle, suppress_handler = event.args @@ -125,7 +125,7 @@ def test(q, bus, conn, stream): conn.Disconnect() - while 1: + while True: event = q.expect('dbus-signal') if event.signal == 'StatusChanged' and event.args == [2, 1]: diff --git a/tests/twisted/roster/test-roster-subscribe.py b/tests/twisted/roster/test-roster-subscribe.py index 46cfeb195..7a61a6cee 100644 --- a/tests/twisted/roster/test-roster-subscribe.py +++ b/tests/twisted/roster/test-roster-subscribe.py @@ -18,7 +18,7 @@ def test(q, bus, conn, stream): event.stanza['type'] = 'result' stream.send(event.stanza) - while 1: + while True: event = q.expect('dbus-signal', signal='NewChannel') path, type, handle_type, handle, suppress_handler = event.args -- cgit v1.2.3