]> granicus.if.org Git - python/commit
bpo-36725: regrtest: add TestResult type (GH-12960)
authorVictor Stinner <vstinner@redhat.com>
Fri, 26 Apr 2019 02:08:53 +0000 (04:08 +0200)
committerGitHub <noreply@github.com>
Fri, 26 Apr 2019 02:08:53 +0000 (04:08 +0200)
commit4d29983185bc12ca685a1eb3873bacb8a7b67416
tree26457c1f05ba31ed1cb1421b7ea50b8f98630a21
parent9db0324712f6982d89620b420f507a6aa5da152f
bpo-36725: regrtest: add TestResult type (GH-12960)

* Add TestResult and MultiprocessResult types to ensure that results
  always have the same fields.
* runtest() now handles KeyboardInterrupt
* accumulate_result() and format_test_result() now takes a TestResult
* cleanup_test_droppings() is now called by runtest() and mark the
  test as ENV_CHANGED if the test leaks support.TESTFN file.
* runtest() now includes code "around" the test in the test timing
* Add print_warning() in test.libregrtest.utils to standardize how
  libregrtest logs warnings to ease parsing the test output.
* support.unload() is now called with abstest rather than test_name
* Rename 'test' variable/parameter to 'test_name'
* dash_R(): remove unused the_module parameter
* Remove unused imports
Lib/test/libregrtest/main.py
Lib/test/libregrtest/refleak.py
Lib/test/libregrtest/runtest.py
Lib/test/libregrtest/runtest_mp.py
Lib/test/libregrtest/save_env.py
Lib/test/libregrtest/utils.py
Lib/test/libregrtest/win_utils.py
Lib/test/test_regrtest.py