Deprecate collecting 'test*.txt' files as doctests, replaced by 'test_*.txt' #5450
Labels
plugin: doctests
related to the doctests builtin plugin
type: deprecation
feature that will be removed in the future
type: proposal
proposal for a new feature, often to gather opinions or design the API around the new feature
I've always thought odd that the pattern for collecting doctest files is
test*.txt
, while for Python files istest_*.py
and*_test.py
.How about we deprecate collecting
test*.txt
files? Sometimes this tries to collect files which are not test files and can be a source of confusion (#5445 is the most recent example of this but I'm sure there are more). We could emit a warning when we collect such a file and the user did not specify that option explicitly.After that we should decide to which pattern we should collect by default then:
test_*.txt
.test_*.rst
.The text was updated successfully, but these errors were encountered: