Message180877
Here's a patch that I believe nicely handles the raising of unittest.SkipTest at module level while doing test discovery. It adds a _make_skipped_test function to unittest.loader, and an ``except case.SkipTest`` clause to TestLoader._find_tests. For our own test package, this covers non-enabled resources as well.
Here's some example output:
"""
P:\cpython>python -m unittest discover -v Lib/test/ "test_curs*"
test_curses (unittest.loader.ModuleSkipped) ... skipped "Use of the 'curses' res
ource not enabled"
----------------------------------------------------------------------
Ran 1 test in 0.001s
OK (skipped=1)
[102289 refs, 38970 blocks]
""" |
|
Date |
User |
Action |
Args |
2013-01-28 19:48:07 | zach.ware | set | recipients:
+ zach.ware, brett.cannon, pitrou, ezio.melotti, eric.araujo, Arfrever, michael.foord, asvetlov, chris.jerdonek |
2013-01-28 19:48:07 | zach.ware | set | messageid: <1359402487.19.0.847089122119.issue16935@psf.upfronthosting.co.za> |
2013-01-28 19:48:07 | zach.ware | link | issue16935 messages |
2013-01-28 19:48:07 | zach.ware | create | |
|