pytest icon indicating copy to clipboard operation
pytest copied to clipboard

Resolving Issue #13902

Open emilymamcarz opened this issue 1 week ago • 0 comments

Hello,

This PR resolves #13902.

Description

This PR corrects the subtests documentation example, which currently uses .. code-block:: pytest and displays all u characters in green. This is misleading because the real test output includes both passing and failing subtests, and pytest's syntax highlighter cannot distinguish between them. As a result, the documentation incorrectly implies that all subtests passed.

Solution

Replaces .. code-block:: pytest with .. code-block:: console to disable pytest-specific highlighting. This updates the subtest output example to show a realistic mixture of subtest results (e.g., u u u u uF) without relying on color and ensures the documentation reflects actual pytest output, including multiple subtest results and the final test failure due to failed subtests.

Information

Head-fork: emilymamcarz/pytest compare: issue13902

base-fork: pytest-dev/pytest base: main

Thanks, Emily

emilymamcarz avatar Nov 30 '25 01:11 emilymamcarz