Revert "Disable unit tests for 2.6, close #57"

This reverts commit e39e05f8a5.
This commit is contained in:
David Arthur
2013-10-03 13:11:33 -04:00
parent e39e05f8a5
commit f70ef1d3d6
2 changed files with 1 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ high-level consumer and producer classes. Request batching is supported by the
protocol as well as broker-aware request routing. Gzip and Snappy compression
is also supported for message sets.
Compatible with Python 2.6+ and Apache Kafka 0.8.1
Compatible with Apache Kafka 0.8.1
http://kafka.apache.org/

View File

@@ -1,7 +1,6 @@
import os
import random
import struct
import sys
import unittest
from kafka.client import KafkaClient, ProduceRequest, FetchRequest
@@ -14,10 +13,6 @@ from kafka.codec import (
ITERATIONS = 1000
STRLEN = 100
# TODO remove this and fix unit tests
if sys.version_info < (2,7):
print("Skipping unit tests for Python <2.7")
exit(0)
def random_string():
return os.urandom(random.randint(1, STRLEN))