Pablo Galindo Salgado <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue44808>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com