mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-44895: libregrtest: refleak check clears types later (GH-28113)
libregrtest now clears the type cache later to reduce the risk of false alarm when checking for reference leaks. Previously, the type cache was cleared too early and libregrtest raised a false alarm about reference leaks under very specific conditions. Move also support.gc_collect() outside clear/cleanup functions to make the garbage collection more explicit. Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
This commit is contained in:
parent
863154c929
commit
679cb4781e
4 changed files with 21 additions and 15 deletions
|
@ -217,5 +217,3 @@ def clear_caches():
|
|||
else:
|
||||
for f in typing._cleanups:
|
||||
f()
|
||||
|
||||
support.gc_collect()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue