summaryrefslogtreecommitdiff
path: root/test/test_producer.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2018-01-12 12:49:01 -0800
committerGitHub <noreply@github.com>2018-01-12 12:49:01 -0800
commit34fea654c0136490bb5f2785ddc4e7f37ebf7ab2 (patch)
treebf1c8daef6667807a5af1552f00a30fd08d2b86f /test/test_producer.py
parent298709d2590b201dfe1b8753baacd1d2b554710f (diff)
downloadkafka-python-34fea654c0136490bb5f2785ddc4e7f37ebf7ab2.tar.gz
Minor test cleanups (#1343)
Diffstat (limited to 'test/test_producer.py')
-rw-r--r--test/test_producer.py1
1 files changed, 1 insertions, 0 deletions
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