jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / python / python39 / patches / 43-test-filecomments.patch
blobbd37b35dfc13488ccd727bf3d13c7c42c7e0fd17
2 Support comments in the test ignore file (see ../files/test.exclude)
4 diff -wpruN '--exclude=*.orig' a~/Lib/test/libregrtest/cmdline.py a/Lib/test/libregrtest/cmdline.py
5 --- a~/Lib/test/libregrtest/cmdline.py 1970-01-01 00:00:00
6 +++ a/Lib/test/libregrtest/cmdline.py 1970-01-01 00:00:00
7 @@ -435,6 +435,7 @@ def _parse_args(args, **kwargs):
8 ns.ignore_tests = []
9 with open(ns.ignore_filename) as fp:
10 for line in fp:
11 + if line.startswith('#'): continue
12 ns.ignore_tests.append(line.strip())
13 if ns.forever:
14 # --forever implies --failfast