diff options
author | Bruno ReniƩ <brutasse@gmail.com> | 2014-08-29 09:27:55 +0200 |
---|---|---|
committer | Mark Roberts <wizzat@fb.com> | 2014-09-03 09:55:45 -0700 |
commit | 85785bbce311973ee6161e56dac23a08427cec8c (patch) | |
tree | 082a6f8e0afe41fd745cf5903b1fb15003f8840e /test/testutil.py | |
parent | 8a54974e5676002fffc0fdbb9b5d6ee7dc9f3a89 (diff) | |
download | kafka-python-85785bbce311973ee6161e56dac23a08427cec8c.tar.gz |
Fix bytes interpolation
Diffstat (limited to 'test/testutil.py')
-rw-r--r-- | test/testutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testutil.py b/test/testutil.py index 5cdebb3..980a683 100644 --- a/test/testutil.py +++ b/test/testutil.py @@ -59,7 +59,7 @@ class KafkaIntegrationTestCase(unittest.TestCase): return if not self.topic: - self.topic = "%s-%s" % (self.id()[self.id().rindex(".") + 1:], random_string(10)) + self.topic = "%s-%s" % (self.id()[self.id().rindex(".") + 1:], random_string(10).decode('utf-8')) if self.create_client: self.client = KafkaClient('%s:%d' % (self.server.host, self.server.port)) |