summaryrefslogtreecommitdiff
path: root/test/testutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/testutil.py')
-rw-r--r--test/testutil.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/testutil.py b/test/testutil.py
index a1383a0..feb6f6d 100644
--- a/test/testutil.py
+++ b/test/testutil.py
@@ -19,6 +19,7 @@ from kafka.errors import (
from kafka.structs import OffsetRequestPayload, ProduceRequestPayload
from test.fixtures import random_string, version_str_to_list, version as kafka_version #pylint: disable=wrong-import-order
+
def kafka_versions(*versions):
def construct_lambda(s):
@@ -65,12 +66,6 @@ def kafka_versions(*versions):
return real_kafka_versions
-def get_open_port():
- sock = socket.socket()
- sock.bind(("", 0))
- port = sock.getsockname()[1]
- sock.close()
- return port
_MESSAGES = {}
def msg(message):