[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 12:46:37 EDT 2021


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

> So I'm still puzzled about why that test worked on POSIX and failed on Windows

I was able to reproduce it in my MacOS machine (maybe also it reproduced on Linux). The problem is that when you run with -R, the test runs several times and the import statement is a noop the second time because is cached. We needed to modify the test to import the module always

----------

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


More information about the Python-bugs-list mailing list