# python3.11 repro.py
--- Logging error ---
Traceback (most recent call last):
File "/workspaces/cpython/repro.py", line 8, in <module>
raise X()
object address : 0x7f3007c67e80
object refcount : 2
object type : 0x7f3015bf0b20
object type name: KeyError
object repr : KeyError('__notes__')
lost sys.stderr
Bug report
Bug description:
Running this code:
does not print "ok" but instead:
CPython versions tested on:
3.11, CPython main branch
Operating systems tested on:
Linux
Linked PRs