Commit e41af6c
authored
Improve output with invalid asyncio_mode (#557)
Instead of a long INTERNALERROR> stack trace, output a proper error
message:
$ pytest -o asyncio_mode=True
=================== test session starts ====================
platform linux -- Python 3.11.3, pytest-7.3.1, pluggy-1.0.0
ERROR: 'True' is not a valid asyncio_mode. Valid modes: auto, strict.
See pytest-dev/pytest#110831 parent f0cdf46 commit e41af6c
File tree
3 files changed
+19
-1
lines changed- docs/source/reference
- pytest_asyncio
- tests
3 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
168 | 174 | | |
169 | 175 | | |
170 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
0 commit comments