fix TestMakerClientProtocol failing with py3

This commit is contained in:
undeath 2018-12-06 18:42:42 +01:00
parent 94c158013b
commit 12705b5e72
No known key found for this signature in database
GPG key ID: F0DF5443BD2F3520

View file

@ -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: