bpo-30523: regrtest: Add --list-cases option by mlouielu · Pull Request #2238 · python/cpython
* Add get_abs_module() function, use it in list_cases() * list_cases() now logs skipped tests into stderr
| if isinstance(test, unittest.loader._FailedTest): | ||
| continue | ||
| elif isinstance(test, doctest.DocTestCase): | ||
| continue |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this if: doctest falls into the the unittest.TestCase case, and... it just works! I'm able to pass to output to -m test --matchfile=tests and only these doctest tests are executed!
| @@ -1,4 +1,5 @@ | |||
| import datetime | |||
| import doctest | |||
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this import (see above).
This was referenced
Jun 16, 2017This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters