mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-37957: Allow regrtest to receive a file with test (and subtests) to ignore (GH-16989)
When building Python in some uncommon platforms there are some known tests that will fail. Right now, the test suite has the ability to ignore entire tests using the -x option and to receive a filter file using the --matchfile filter. The problem with the --matchfile option is that it receives a file with patterns to accept and when you want to ignore a couple of tests and subtests, is too cumbersome to lists ALL tests that are not the ones that you want to accept and he problem with -x is that is not easy to ignore just a subtests that fail and the whole test needs to be ignored. For these reasons, add a new option to allow to ignore a list of test and subtests for these situations.
This commit is contained in:
parent
ef5aa9af7c
commit
e0cd8aa70a
7 changed files with 169 additions and 24 deletions
|
@ -287,7 +287,7 @@ class Regrtest:
|
|||
|
||||
def list_cases(self):
|
||||
support.verbose = False
|
||||
support.set_match_tests(self.ns.match_tests)
|
||||
support.set_match_tests(self.ns.match_tests, self.ns.ignore_tests)
|
||||
|
||||
for test_name in self.selected:
|
||||
abstest = get_abs_module(self.ns, test_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue