Sitelet https://github.com/python/cpython/issues/110367#top
Skip to content

regrtest: python -m test -j1 --verbose3 should not replace sys.stdout #110367

Description

@vstinner

Currently, when a test does crash, its output is lost. It gives bug reports like issue gh-110364 which contains no output, just an exit code :-( The problem is that run_single_test() replaces sys.stdout when --verbose3 option is used. If Python runs normally, the output is ignored on success, or display on error.

When we run a worker process, we can make this decision in the main process: ignore the output on error, or display the output on error.

Linked PRs

Activity

  1. added 8 commits that reference this issue on Oct 4, 2023
  2. added 5 commits that reference this issue on Oct 31, 2023
  3. added 2 commits that reference this issue on Nov 1, 2023
  4. added 2 commits that reference this issue on Nov 1, 2023
  5. added a commit that references this issue on Nov 3, 2023
  6. added a commit that references this issue on Feb 11, 2024
  7. added 3 commits that reference this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions