Skip to content

Commit 11022e1

Browse files
committed
Fix subtests documentation highlighting: remove misleading all-green 'u' output
1 parent 4d38675 commit 11022e1

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ Eli Boyarski
151151
Elizaveta Shashkova
152152
Éloi Rivard
153153
Emil Hjelm
154+
Emily Mamcarz
154155
Endre Galaczi
155156
Eric Hunsberger
156157
Eric Liu

doc/en/how-to/subtests.rst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Subtests are an alternative to parametrization, particularly useful when the exa
2626
2727
Each assertion failure or error is caught by the context manager and reported individually:
2828

29-
.. code-block:: pytest
29+
.. code-block:: console
3030
3131
$ pytest -q test_subtest.py
32-
uuuuuF [100%]
32+
u u u u uF [100%]
3333
================================= FAILURES =================================
3434
_______________________ test [custom message] (i=1) ________________________
3535
@@ -61,14 +61,6 @@ Each assertion failure or error is caught by the context manager and reported in
6161
FAILED test_subtest.py::test - contains 2 failed subtests
6262
3 failed, 3 subtests passed in 0.12s
6363
64-
In the output above:
65-
66-
* Subtest failures are reported as ``SUBFAILED``.
67-
* Subtests are reported first and the "top-level" test is reported at the end on its own.
68-
69-
Note that it is possible to use ``subtests`` multiple times in the same test, or even mix and match with normal assertions
70-
outside the ``subtests.test`` block:
71-
7264
.. code-block:: python
7365
7466
def test(subtests):

0 commit comments

Comments
 (0)