We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22e6336 commit 4d5215dCopy full SHA for 4d5215d
test/test_producer.py
@@ -72,6 +72,7 @@ def test_end_to_end(kafka_broker, compression):
72
@pytest.mark.skipif(platform.python_implementation() != 'CPython',
73
reason='Test relies on CPython-specific gc policies')
74
def test_kafka_producer_gc_cleanup():
75
+ gc.collect()
76
threads = threading.active_count()
77
producer = KafkaProducer(api_version='0.9') # set api_version explicitly to avoid auto-detection
78
assert threading.active_count() == threads + 1
0 commit comments