diff options
author | Seth Nickell <seth@gnome.org> | 2004-06-01 01:20:59 +0000 |
---|---|---|
committer | Seth Nickell <seth@gnome.org> | 2004-06-01 01:20:59 +0000 |
commit | 23e9d3d5040f51870f212ea70a94c9913c90e66b (patch) | |
tree | 672609cc6a54ca4a4accb6b2ad963b1084572470 /python/tests | |
parent | d027c9937534e3f49564e9c30c37421f8138c562 (diff) |
* python/dbus_bindings.pyx.in:
* python/tests/test-client.py:
Test Suite: 1
Python Bindings: 0
(fix string array memory trashing bug... oops)
Diffstat (limited to 'python/tests')
-rw-r--r-- | python/tests/test-client.py | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/python/tests/test-client.py b/python/tests/test-client.py index 092ee43b..f08f9861 100644 --- a/python/tests/test-client.py +++ b/python/tests/test-client.py @@ -43,5 +43,21 @@ TestEcho(39.5) TestEcho("HelloWorld") TestEcho(dbus_bindings.ObjectPath("/test/path")) -#FIXME!!! Crashes on lists ?!? -#TestEchoList(["one", "two", "three", "four"]) + +string_list = [] +for i in range(200): + string_list.append("List item " + str(i)) +TestEchoList(string_list) + +int_list = range(200) +TestEchoList(int_list) + +path_list = [] +for i in range(200): + path_list.append(dbus_bindings.ObjectPath("/some/object/path" + str(i))) +TestEchoList(path_list) + +double_list = [] +for i in range(200): + double_list.append(float(i) / 1000) +TestEchoList(double_list) |