]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118413: Fix test_release_task_refs on free-threaded build (#118494)
authorSam Gross <colesbury@gmail.com>
Thu, 2 May 2024 17:41:15 +0000 (13:41 -0400)
committerGitHub <noreply@github.com>
Thu, 2 May 2024 17:41:15 +0000 (13:41 -0400)
commit83c51da6cebdced80ebc59de70e8844244de7298
treec4bfada4420524c806f0a85c9901d4696e912790
parentb28a3339e4c63ea3a801dba9bbbc6af5af42c3a0
gh-118413: Fix test_release_task_refs on free-threaded build (#118494)

The `time.sleep()` call should happen before the GC to give the worker
threads time to clean-up their remaining references to objs.
Additionally, use `support.gc_collect()` instead of `gc.collect()`
just in case the extra GC calls matter.
Lib/test/_test_multiprocessing.py