Skip to content

Commit 59af614

Browse files
committed
Test fixes after flake8 run
1 parent a03f0c8 commit 59af614

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

kafka/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from collections import defaultdict
22
from functools import partial
3+
from itertools import count
34
import logging
45
import time
56

6-
from kafka.common import count, ErrorMapping, TopicAndPartition
7+
from kafka.common import ErrorMapping, TopicAndPartition
78
from kafka.conn import KafkaConnection
89
from kafka.protocol import KafkaProtocol
910

test/test_unit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import struct
44
import unittest
55

6-
from kafka.client import KafkaClient, ProduceRequest, FetchRequest
6+
from kafka.client import KafkaClient
7+
from kafka.common import ProduceRequest, FetchRequest
78
from kafka.codec import (
89
has_gzip, has_snappy,
910
gzip_encode, gzip_decode,
@@ -59,7 +60,6 @@ class TestMisc(unittest.TestCase):
5960
def test_length_prefix(self):
6061
for i in xrange(ITERATIONS):
6162
s1 = random_string()
62-
s2 = length_prefix_message(s1)
6363
self.assertEquals(struct.unpack('>i', s2[0:4])[0], len(s1))
6464

6565

0 commit comments

Comments
 (0)