From 656949c93d7d342573ca7e5b1caea6a1b47fac38 Mon Sep 17 00:00:00 2001 From: Hai Shi Date: Thu, 28 May 2020 13:15:38 +0800 Subject: [PATCH] Fix a calling bug in threading_helper --- Lib/test/support/threading_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/support/threading_helper.py b/Lib/test/support/threading_helper.py index 96f7b3fcebfac2..a424f3ced3cd5a 100644 --- a/Lib/test/support/threading_helper.py +++ b/Lib/test/support/threading_helper.py @@ -47,7 +47,7 @@ def threading_cleanup(*original_values): values = None time.sleep(0.01) - gc_collect() + support.gc_collect() def reap_threads(func): @@ -98,7 +98,7 @@ def wait_threads_exit(timeout=None): f"(count: {count}, old count: {old_count})") raise AssertionError(msg) time.sleep(0.010) - gc_collect() + support.gc_collect() def join_thread(thread, timeout=None):