[issue43901] Lazy-create an empty annotations dict in all unannotated user classes and modules

Pablo Galindo Salgado report at bugs.python.org
Fri Apr 30 11:49:09 EDT 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

Oh, actually is workse because commenting out the test shows refleaks:

𓋹 ./python.exe -m test test_module -R :
0:00:00 load avg: 5.03 Run tests sequentially
0:00:00 load avg: 5.03 [1/1] test_module
beginning 9 repetitions
123456789
.........
test_module leaked [47, 47, 47, 47] references, sum=188
test_module leaked [6, 6, 6, 6] memory blocks, sum=24
test_module failed

== Tests result: FAILURE ==

1 test failed:
    test_module

Total duration: 2.0 sec

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43901>
_______________________________________


More information about the Python-bugs-list mailing list