[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

Petr Viktorin report at bugs.python.org
Mon May 28 05:16:45 EDT 2018


Petr Viktorin <encukou at gmail.com> added the comment:

> That's a weak test: if the script fails before calling spec.loader.create_module(), the test also pass. If the function raises an exception but don't crash, the test pass as well.

Marcel added PR 7145 for that -- it wraps things in try/except to catch Python-level exceptions sounds like a good solution to me.

----------

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


More information about the Python-bugs-list mailing list