changeset 20686:c69f62906358

test-wireproto: move from dict() construction to {} literals The latter are both faster and more consistent across Python 2 and 3.
author Augie Fackler <raf@durin42.com>
date Wed, 12 Mar 2014 13:21:30 -0400
parents 56b1f39dd0c1
children 7d4d04299927
files tests/test-wireproto.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-wireproto.py	Wed Mar 12 13:21:17 2014 -0400
+++ b/tests/test-wireproto.py	Wed Mar 12 13:21:30 2014 -0400
@@ -18,7 +18,7 @@
     @wireproto.batchable
     def greet(self, name):
         f = wireproto.future()
-        yield wireproto.todict(name=mangle(name)), f
+        yield {'name': mangle(name)}, f
         yield unmangle(f.value)
 
 class serverrepo(object):