[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:40:50 EDT 2021


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

Unfortunately commit 2f2b69855d6524e15d12c15ddc0adce629e7de84 has broken the buildbots:

======================================================================
FAIL: test_annotations_are_created_correctly (test.test_module.ModuleTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\buildarea\3.x.ware-win81-release.refleak\build\lib\test\test_module.py", line 338, in test_annotations_are_created_correctly
    self.assertTrue("__annotations__" in ann_module4.__dict__)
AssertionError: False is not true
----------------------------------------------------------------------

Example failure:

https://buildbot.python.org/all/#/builders/511/builds/12/steps/4/logs/stdio

----------
nosy: +pablogsal
resolution: fixed -> 
status: closed -> open

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


More information about the Python-bugs-list mailing list