dbus/test/python run-test.sh,1.3,1.4 test-client.py,1.5,1.6

John Palmieri johnp at freedesktop.org
Mon Oct 17 21:38:07 PDT 2005


Update of /cvs/dbus/dbus/test/python
In directory gabe:/tmp/cvs-serv18899/test/python

Modified Files:
	run-test.sh test-client.py 
Log Message:
* glib/dbus-gvalue-utils.c (hash_free_from_gtype): handle gdouble
and G_TYPE_VALUE_ARRAY (DBUS_TYPE_STRUCT)
(gvalue_from_hash_value, hash_value_from_gvalue): handle gdouble

* glib/dbus-gvalue.c (dbus_gvalue_to_signature): add missing
DBUS_STRUCT_BEGIN_CHAR and DBUS_STRUCT_END_CHAR charaters
when constructing struct signatures

* python/_dbus.py (Bus): handle private connections using the
private keyword in the constructor. defaults to private=False
(Bus::close): new method to close a connection to the bus

* python/dbus_bindings.pyx (Connection::close): renamed method
was previously called disconnect
(bus_get): now supports getting a private connection

* python/proxies.py (ProxyMethod::__call__): check if ignore_reply
keyword is set to True.  if it is, execute the method without waiting
for a reply
(ProxyObject::_introspect_execute_queue): new method for executing
all the pending methods that were waiting for the introspect to
finish.  this is called when introspect either succeeds or fails
(ProxyObject::_introspect_error_handler): call queued methods



Index: run-test.sh
===================================================================
RCS file: /cvs/dbus/dbus/test/python/run-test.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- run-test.sh	14 Oct 2005 21:44:00 -0000	1.3
+++ run-test.sh	18 Oct 2005 04:38:05 -0000	1.4
@@ -32,6 +32,10 @@
 #uncomment this if you need to see the output from the service for debugging
 #otherwise keep it commented so we can test activation
 #libtool --mode=execute $DEBUG $DBUS_TOP_BUILDDIR/test/python/test-service.py &
+#libtool --mode=execute $DEBUG $DBUS_TOP_BUILDDIR/test/glib/test-service-glib &
+#sleep 1
+#ps
+#sleep 9
 
 libtool --mode=execute $DEBUG $DBUS_TOP_BUILDDIR/test/python/test-client.py || die "test-client.py failed"
 rm $DBUS_TOP_BUILDDIR/python/dbus

Index: test-client.py
===================================================================
RCS file: /cvs/dbus/dbus/test/python/test-client.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- test-client.py	14 Oct 2005 21:44:00 -0000	1.5
+++ test-client.py	18 Oct 2005 04:38:05 -0000	1.6
@@ -25,9 +25,9 @@
                  "dude", "123", "What is all the fuss about?", "gob at gob.com",
                  [1,2,3], ["how", "are", "you"], [1.23,2.3], [1], ["Hello"],
                  (1,2,3), (1,), (1,"2",3), ("2", "what"), ("you", 1.2),
-                 {1:"a", 2:"b"}, {"a":1, "b":2}, {1:1.1, 2:2.2}, {1.1:"a", 1.2:"b"}, 
-                 [[1,2,3],[2,3,4]], [["a","b"],["c","d"]],
-                 ([1,2,3],"c", 1.2, ["a","b","c"], {"a": (1,"v"), "b": (2,"d")})
+                 {1:"a", 2:"b"}, {"a":1, "b":2}, #{"a":(1,"B")},
+                 {1:1.1, 2:2.2}, [[1,2,3],[2,3,4]], [["a","b"],["c","d"]],
+                 #([1,2,3],"c", 1.2, ["a","b","c"], {"a": (1,"v"), "b": (2,"d")})
                  ]
 
 class TestDBusBindings(unittest.TestCase):
@@ -129,9 +129,6 @@
         print "Call test passed"
         self.assert_(True)
 
-    #this crashes glib so disable it for now
-    #until glib is fixed
-    """
     def testPythonTypes(self):
         print "\n********* Testing Python Types ***********"
                  
@@ -139,11 +136,9 @@
             print "Testing %s"% str(send_val)
             recv_val = self.iface.EchoVariant(send_val)
             self.assertEquals(send_val, recv_val)
-    """
 
 if __name__ == '__main__':
     gobject.threads_init()
     dbus.glib.init_threads()
 
     unittest.main()
-



More information about the dbus-commit mailing list