Skip to content

Add a space after the test name with --setup-show#14430

Open
The-Compiler wants to merge 1 commit intopytest-dev:mainfrom
The-Compiler:setup-show-spacing
Open

Add a space after the test name with --setup-show#14430
The-Compiler wants to merge 1 commit intopytest-dev:mainfrom
The-Compiler:setup-show-spacing

Conversation

@The-Compiler
Copy link
Copy Markdown
Member

Before, a test's result was printed immediately after --setup-show output:

SETUP    F fixt
test_show.py::test_a (fixtures used: fixt)PASSED
TEARDOWN F fixt

In the extreme case, with monochrome output or yellow and white colors being close to each other, an "x" for an xfailing test can be misinterpreted as part of a test name:

test_show.py::test_xfailx

This adds a space to clearly distinguish the output:

test_show.py::test_a (fixtures used: fixt) PASSED

and

test_show.py::test_xfail x

Before, a test's result was printed immediately after --setup-show output:

    SETUP    F fixt
    test_show.py::test_a (fixtures used: fixt)PASSED
    TEARDOWN F fixt

In the extreme case, with monochrome output or yellow and white colors being
close to each other, an "x" for an xfailing test can be misinterpreted as part
of a test name:

    test_show.py::test_xfailx

This adds a space to clearly distinguish the output:

    test_show.py::test_a (fixtures used: fixt) PASSED

and

    test_show.py::test_xfail x
@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants