This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author petr.viktorin
Recipients Dormouse759, docs@python, miss-islington, ncoghlan, petr.viktorin, pitrou, scoder, vstinner
Date 2018-05-28.09:16:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527499005.91.0.682650639539.issue32374@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2018-05-28 09:16:46petr.viktorinsetrecipients: + petr.viktorin, ncoghlan, pitrou, scoder, vstinner, docs@python, Dormouse759, miss-islington
2018-05-28 09:16:45petr.viktorinsetmessageid: <1527499005.91.0.682650639539.issue32374@psf.upfronthosting.co.za>
2018-05-28 09:16:45petr.viktorinlinkissue32374 messages
2018-05-28 09:16:45petr.viktorincreate