[issue16935] unittest should understand SkipTest at import time during test discovery
Chris Jerdonek
report at bugs.python.org
Mon Jan 14 01:06:27 CET 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue16935>
_______________________________________
More information about the Python-bugs-list
mailing list