[issue42797] Allow doctest to select tests via -m/--match option

2021-01-01 Thread Costas Basdekis
Costas Basdekis added the comment: Thanks for the thorough feedback Steven (and happy new year). About -m flag: we could use -k as other testing frameworks use (pytest), or even -t. About selecting multiple indexes: what you described is my exact use case, as I have a lot of failing example

[issue42797] Allow doctest to select tests via -m/--match option

2020-12-31 Thread Steven D'Aprano
Steven D'Aprano added the comment: I think that -m is unacceptable as it will clash with Python's -m option. I'm not convinced that this added complexity will provide enough benefit to make it worth while. I can see myself spending an order of magnitude more time trying to work out why my te

[issue42797] Allow doctest to select tests via -m/--match option

2020-12-31 Thread Costas Basdekis
Change by Costas Basdekis : -- keywords: +patch pull_requests: +22868 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24028 ___ Python tracker ___

[issue42797] Allow doctest to select tests via -m/--match option

2020-12-31 Thread Costas Basdekis
New submission from Costas Basdekis : Most testing frameworks allow for only a subset of tests to be run, and the reason is usually either to focus on a specific test among many failing ones, or for speed purposes if running the whole suite is too slow. With doctests, it's usually the case th