Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regrtest computes statistics #108793

Merged
merged 1 commit into from
Sep 2, 2023
Merged

regrtest computes statistics #108793

merged 1 commit into from
Sep 2, 2023

Commits on Sep 2, 2023

  1. regrtest computes statistics

    test_main() of test_netrc, test_pep646_syntax and test_xml_etree now
    return results.
    
    Changes:
    
    * Rewrite TestResult as a dataclass with a new State class.
    * Add test.support.TestStats class and Regrtest.stats_dict attribute.
    * libregrtest.runtest functions now modify a TestResult instance
      in-place.
    * libregrtest summary lists the number of run tests and skipped
      tests, and denied resources.
    * Add TestResult.has_meaningful_duration() method.
    * Compute TestResult duration in the upper function.
    * Use time.perf_counter() instead of time.monotonic().
    * Regrtest: rename 'resource_denieds' attribute to 'resource_denied'.
    * Rename CHILD_ERROR to MULTIPROCESSING_ERROR.
    * Use match/case syntadx to have different code depending on the
      test state.
    
    Co-authored-by: Alex Waygood <[email protected]>
    vstinner and AlexWaygood committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    97c7263 View commit details
    Browse the repository at this point in the history