From 9a19258b1dc08801a09994461bf623687156ee33 Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Thu, 11 Jan 2018 17:41:36 -0800 Subject: Minor test cleanups --- test/test_producer.py | 1 + 1 file changed, 1 insertion(+) (limited to 'test/test_producer.py') diff --git a/test/test_producer.py b/test/test_producer.py index 20dffc2..f7a5b68 100644 --- a/test/test_producer.py +++ b/test/test_producer.py @@ -72,6 +72,7 @@ def test_end_to_end(kafka_broker, compression): @pytest.mark.skipif(platform.python_implementation() != 'CPython', reason='Test relies on CPython-specific gc policies') def test_kafka_producer_gc_cleanup(): + gc.collect() threads = threading.active_count() producer = KafkaProducer(api_version='0.9') # set api_version explicitly to avoid auto-detection assert threading.active_count() == threads + 1 -- cgit v1.2.1