1. 26 Apr, 2019 5 commits
    • Victor Stinner's avatar
      bpo-36725: Refactor regrtest multiprocessing code (GH-12961) · 3cde440f
      Victor Stinner authored
      Rewrite run_tests_multiprocess() function as a new MultiprocessRunner
      class with multiple methods to better report errors and stop
      immediately when needed.
      
      Changes:
      
      * Worker processes are now killed immediately if tests are
        interrupted or if a test does crash (CHILD_ERROR): worker
        processes are killed.
      * Rewrite how errors in a worker thread are reported to
        the main thread. No longer ignore BaseException or parsing errors
        silently.
      * Remove 'finished' variable: use worker.is_alive() instead
      * Always compute omitted tests. Add Regrtest.get_executed() method.
      3cde440f
    • Victor Stinner's avatar
      bpo-36724: Add _PyWarnings_Fini() (#12963) · 87d23a04
      Victor Stinner authored
      Py_FinalizeEx() now clears _PyRuntime.warnings variables and
      _PyRuntime.exitfuncs.
      
      Changes:
      
      * Add _PyWarnings_Fini(): called by Py_FinalizeEx()
      * call_ll_exitfuncs() now clears _PyRuntime.exitfuncs while iterating
        on it (on backward order).
      87d23a04
    • Victor Stinner's avatar
      bpo-36710: Fix compiler warning on PyThreadState_Delete() (GH-12962) · 99e69d44
      Victor Stinner authored
      _PyThreadState_Delete() has no return value.
      99e69d44
    • Victor Stinner's avatar
      bpo-36725: regrtest: add TestResult type (GH-12960) · 4d299831
      Victor Stinner authored
      * 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
      4d299831
    • Victor Stinner's avatar
      bpo-36710: Add runtime parameter in gcmodule.c (GH-12958) · 9db03247
      Victor Stinner authored
      Add 'state' or 'runtime' parameter to functions in gcmodule.c to
      avoid to rely directly on the global variable _PyRuntime.
      9db03247
  2. 25 Apr, 2019 6 commits
  3. 24 Apr, 2019 12 commits
  4. 23 Apr, 2019 11 commits
  5. 22 Apr, 2019 6 commits