The CLI entry point of pytest. .. deprecated:: 9.1 This function is slated for removal in pytest 10. It is not meant for programmable use; use :func:`pytest.main` instead.
()
| 262 | |
| 263 | |
| 264 | def console_main() -> int: |
| 265 | """The CLI entry point of pytest. |
| 266 | |
| 267 | .. deprecated:: 9.1 |
| 268 | This function is slated for removal in pytest 10. |
| 269 | It is not meant for programmable use; use :func:`pytest.main` instead. |
| 270 | """ |
| 271 | import warnings |
| 272 | |
| 273 | from _pytest.deprecated import CONSOLE_MAIN |
| 274 | |
| 275 | warnings.warn(CONSOLE_MAIN, stacklevel=2) |
| 276 | return _console_main() |
| 277 | |
| 278 | |
| 279 | class cmdline: # compatibility namespace |