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 vstinner
Recipients Jim Fasarakis-Hilliard, Mariatta, chortos, eric.araujo, jesstess, macpherson.scott, ned.deily, python-dev, ronaldoussoren, serhiy.storchaka, vstinner, yan12125
Date 2017-05-15.10:36:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494844609.24.0.481897561092.issue9850@psf.upfronthosting.co.za>
In-reply-to
Content
>> I looked at this function, but I don't want to skip the test if the module cannot be imported.
>
> You can pass required_on=('',).

('',) looks mysterious to me. I prefer my current code.

If you consider that an helper is required, I would prefer a more explicit option on import_module(), like always_raise=True or something like that?
History
Date User Action Args
2017-05-15 10:36:49vstinnersetrecipients: + vstinner, ronaldoussoren, ned.deily, eric.araujo, jesstess, chortos, python-dev, serhiy.storchaka, yan12125, Jim Fasarakis-Hilliard, macpherson.scott, Mariatta
2017-05-15 10:36:49vstinnersetmessageid: <1494844609.24.0.481897561092.issue9850@psf.upfronthosting.co.za>
2017-05-15 10:36:49vstinnerlinkissue9850 messages
2017-05-15 10:36:49vstinnercreate