Chris Jerdonek added the comment: Without the proposed enhancement, you could also combine Éric's approach with the original patch by doing something like:
try: support.import_module(module) except SkipTest: module = None def setUpModule(): if module is None: raise SkipTest() ---------- nosy: +chris.jerdonek _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16935> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com