Petr Viktorin <encu...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue32374>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to