Skip to content

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

Closed
@vstinner

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

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