From 662d8c516c110a29d697f43f85300fe5140f33af Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 1 Mar 2024 08:48:10 +0100 Subject: [PATCH] Try to fix 3.12 issues with kafka test --- tests/test_examples_kafka.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_examples_kafka.py b/tests/test_examples_kafka.py index 74ee0fc6..604af70e 100644 --- a/tests/test_examples_kafka.py +++ b/tests/test_examples_kafka.py @@ -1,6 +1,13 @@ +import sys + +import six + +if sys.version_info >= (3, 12, 1): + sys.modules['kafka.vendor.six.moves'] = six.moves + + import json import logging -import os import pytest from kafka import KafkaProducer