diff options
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)) |