mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-109276: Enhance libregrtest results (#109828)
* Factorize code listing "bad / env changed / ..." tests. * Add TestResults.is_all_good() method. * Move "All 400 tests OK." to the end * Move "Test suite interrupted by signal SIGINT." to the end.
This commit is contained in:
parent
f29bc9c9a0
commit
faebed4a67
2 changed files with 30 additions and 38 deletions
|
@ -500,7 +500,8 @@ class BaseTestCase(unittest.TestCase):
|
|||
self.check_line(output, regex)
|
||||
|
||||
if env_changed:
|
||||
regex = list_regex('%s test%s altered the execution environment',
|
||||
regex = list_regex(r'%s test%s altered the execution environment '
|
||||
r'\(env changed\)',
|
||||
env_changed)
|
||||
self.check_line(output, regex)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue