summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-07-22 16:55:44 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-07-22 16:55:44 +0000
commit0b689929da8bcd5e968d50a148d298c744874ff6 (patch)
tree63f5e489c735901aec883a3bd0f07e3b8b0474d4 /tests
parentaa32e01db0f8611ad0f27274b0c6a161c75c3a23 (diff)
roster/ tests: use "while True" instead of "while 1"
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/roster/test-google-roster.py4
-rw-r--r--tests/twisted/roster/test-roster-subscribe.py2
2 files changed, 3 insertions, 3 deletions
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