summaryrefslogtreecommitdiff
path: root/test/__init__.py
diff options
context:
space:
mode:
authorJeff Widman <jeff@jeffwidman.com>2019-10-11 12:03:22 -0700
committerGitHub <noreply@github.com>2019-10-11 12:03:22 -0700
commit3631bfa009a28767a2057c9beee470acaa6597d5 (patch)
treee10b73861a33d83a95b6496ef3074ee3caeaae41 /test/__init__.py
parent6d3800ca9f45fd953689a1787fc90a5e566e34ea (diff)
downloadkafka-python-3631bfa009a28767a2057c9beee470acaa6597d5.tar.gz
Remove SimpleClient, Producer, Consumer, Unittest (#1196)
In the 2.0 release, we're removing: * `SimpleClient` * `SimpleConsumer` * `SimpleProducer` * Old partitioners used by `SimpleProducer`; these are superceded by the `DefaultPartitioner` These have been deprecated for several years in favor of `KafkaClient` / `KafkaConsumer` / `KafkaProducer`. Since 2.0 allows breaking changes, we are removing the deprecated classes. Additionally, since the only usage of `unittest` was in tests for these old Simple* clients, this also drops `unittest` from the library. All tests now run under `pytest`.
Diffstat (limited to 'test/__init__.py')
-rw-r--r--test/__init__.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/__init__.py b/test/__init__.py
index 3d2ba3d..71f667d 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -1,12 +1,5 @@
from __future__ import absolute_import
-import sys
-
-if sys.version_info < (2, 7):
- import unittest2 as unittest # pylint: disable=import-error
-else:
- import unittest
-
# Set default logging handler to avoid "No handler found" warnings.
import logging
try: # Python 2.7+