Fixed #29127 -- Prevented DiscoverRunner from hiding tagged test with syntax errors.

This mades _FailedTest objects always match tags in DiscoverRunner.
This commit is contained in:
Chris Jerdonek 2021-03-26 05:14:43 -07:00 committed by Mariusz Felisiak
parent 7c08f26bf0
commit 038940cf55
5 changed files with 37 additions and 0 deletions

View file

@ -1497,6 +1497,12 @@ don't.
Runs only tests :ref:`marked with the specified tags <topics-tagging-tests>`.
May be specified multiple times and combined with :option:`test --exclude-tag`.
Tests that fail to load are always considered matching.
.. versionchanged:: 4.0
In older versions, tests that failed to load did not match tags.
.. option:: --exclude-tag EXCLUDE_TAGS
Excludes tests :ref:`marked with the specified tags <topics-tagging-tests>`.

View file

@ -373,6 +373,9 @@ Miscellaneous
non-boolean attribute without a value equal to an attribute with the same
name and value.
* Tests that fail to load, for example due to syntax errors, now always match
when using :option:`test --tag`.
.. _deprecated-features-4.0:
Features deprecated in 4.0