diff options
author | Bruno ReniƩ <brutasse@gmail.com> | 2014-08-29 15:23:48 +0200 |
---|---|---|
committer | Bruno ReniƩ <brutasse@gmail.com> | 2014-08-29 15:23:48 +0200 |
commit | 2a220e11003eb26971519a73e020d4759e2b3a31 (patch) | |
tree | 235104f553fd91d97b84acc07dec681a06b8b642 /test/testutil.py | |
parent | 9c83b2bd764f494c3d3a074054914a2b5fd99328 (diff) | |
download | kafka-python-2a220e11003eb26971519a73e020d4759e2b3a31.tar.gz |
Fix more tests, only multiprocessing consumer ones remaining
Diffstat (limited to 'test/testutil.py')
-rw-r--r-- | test/testutil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testutil.py b/test/testutil.py index 114dff9..9262fca 100644 --- a/test/testutil.py +++ b/test/testutil.py @@ -59,8 +59,8 @@ class KafkaIntegrationTestCase(unittest.TestCase): return if not self.topic: - self.topic = "%s-%s" % (self.id()[self.id().rindex(".") + 1:], random_string(10).decode('utf-8')) - self.topic = self.topic.encode('utf-8') + topic = "%s-%s" % (self.id()[self.id().rindex(".") + 1:], random_string(10).decode('utf-8')) + self.topic = topic.encode('utf-8') if self.create_client: self.client = KafkaClient('%s:%d' % (self.server.host, self.server.port)) |