From 12705b5e7257dd34d29b12be9ed2a87b81976d21 Mon Sep 17 00:00:00 2001 From: undeath Date: Thu, 6 Dec 2018 18:42:42 +0100 Subject: [PATCH] fix TestMakerClientProtocol failing with py3 --- jmclient/test/test_client_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jmclient/test/test_client_protocol.py b/jmclient/test/test_client_protocol.py index 2d681b8..f22e069 100644 --- a/jmclient/test/test_client_protocol.py +++ b/jmclient/test/test_client_protocol.py @@ -315,7 +315,7 @@ class TestMakerClientProtocol(unittest.TestCase): def callClient(self, jmcmd, response_cb=None, error_cb=None, **kwargs): box = jmcmd.makeArguments(kwargs, self.client) - box[b'_command'] = jmcmd.__name__ + box[b'_command'] = jmcmd.__name__.encode('utf-8') d = self.client.dispatchCommand(box) d.addCallback(response_cb or self.get_response_cb(jmcmd)) if error_cb: