STINNER Victor added the comment: >> 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? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9850> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com