[issue44808] test_inspect fails in refleak mode
Pablo Galindo Salgado
report at bugs.python.org
Mon Aug 2 07:05:43 EDT 2021
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
>From f468ede4a2b7ab5c72ae85ab04cb56904300cd23:
This code looks quite dangerous:
class TestGetsourceInteractive(unittest.TestCase):
def tearDown(self):
mod.ParrotDroppings.__module__ = mod
sys.modules['__main__'] = self.main
That is modifing sys.modules globally!
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44808>
_______________________________________
More information about the Python-bugs-list
mailing list