[New-bugs-announce] [issue44808] test_inspect fails in refleak mode

Pablo Galindo Salgado report at bugs.python.org
Mon Aug 2 05:55:50 EDT 2021


New submission from Pablo Galindo Salgado <pablogsal at gmail.com>:

>From https://bugs.python.org/issue44206 :

  File "/home/mark/repos/cpython/Lib/inspect.py", line 1154, in walktree
    classes.sort(key=attrgetter('__module__', '__name__'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'str' and 'module'


I can reproduce that failure with a debug build and either of
./python -m test -R 3:3  test_inspect
./python -m test test_inspect -F

----------
messages: 398744
nosy: Mark.Shannon, pablogsal
priority: normal
severity: normal
status: open
title: test_inspect fails in refleak mode
versions: Python 3.10, Python 3.11

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


More information about the New-bugs-announce mailing list