summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2010-07-11 10:51:44 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2010-07-11 10:57:22 +0100
commit808d2827e245f612f1da59cc7bb0d9e360995306 (patch)
tree71827d88cec12cdd53bb250c25251ee6341b3420
parent724c435d8cbe2a82f3d07c1a5188f5a8ddcda429 (diff)
Update tests for port being a UInt32.
(Whoops...)
-rw-r--r--tests/twisted/connect/fail.py2
-rw-r--r--tests/twisted/connect/twice-to-same-account.py3
-rw-r--r--tests/twisted/hazetest.py3
3 files changed, 3 insertions, 5 deletions
diff --git a/tests/twisted/connect/fail.py b/tests/twisted/connect/fail.py
index 7edad57..5b676f0 100644
--- a/tests/twisted/connect/fail.py
+++ b/tests/twisted/connect/fail.py
@@ -13,5 +13,5 @@ def test(q, bus, conn, stream):
q.expect('dbus-signal', signal='StatusChanged', args=[2, 2])
if __name__ == '__main__':
- exec_test(test, {'port': dbus.Int32(4243)})
+ exec_test(test, {'port': dbus.UInt32(4243)})
diff --git a/tests/twisted/connect/twice-to-same-account.py b/tests/twisted/connect/twice-to-same-account.py
index ef008d2..1213ace 100644
--- a/tests/twisted/connect/twice-to-same-account.py
+++ b/tests/twisted/connect/twice-to-same-account.py
@@ -31,8 +31,7 @@ def test(q, bus, conn, stream):
'account': 'test@localhost/Resource',
'password': 'pass',
'server': 'localhost',
- # FIXME: the spec says this is a UInt32 and Gabble agrees
- 'port': dbus.Int32(4242),
+ 'port': dbus.UInt32(4242),
}
# You might think that this is the test...
diff --git a/tests/twisted/hazetest.py b/tests/twisted/hazetest.py
index 080e450..bc9593e 100644
--- a/tests/twisted/hazetest.py
+++ b/tests/twisted/hazetest.py
@@ -281,8 +281,7 @@ def make_connection(bus, event_func, params=None):
'password': 'pass',
#'resource': 'Resource',
'server': 'localhost',
- # FIXME: the spec says this is a UInt32 and Gabble agrees
- 'port': dbus.Int32(4242),
+ 'port': dbus.UInt32(4242),
'require-encryption': False,
}