Commit deb9f5f
authored
Add a space after the test name with --setup-show (#14430)
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 x1 parent 2aa0734 commit deb9f5f
4 files changed
Lines changed: 10 additions & 6 deletions
File tree
- changelog
- src/_pytest
- testing
- python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
135 | 136 | | |
136 | | - | |
137 | | - | |
| 137 | + | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | | - | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| 163 | + | |
| 164 | + | |
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4433 | 4433 | | |
4434 | 4434 | | |
4435 | 4435 | | |
4436 | | - | |
| 4436 | + | |
4437 | 4437 | | |
4438 | 4438 | | |
4439 | 4439 | | |
4440 | | - | |
| 4440 | + | |
4441 | 4441 | | |
4442 | 4442 | | |
4443 | 4443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
0 commit comments