test_ok1/doc/en/reference
Simon K eb6c4493b2
Deprecation of `msg=` for both `pytest.skip()` and `pytest.fail()`. (#8950)
* porting pytest.skip() to use reason=, adding tests

* avoid adding **kwargs, it breaks other functionality, use optional msg= instead

* deprecation of `pytest.fail(msg=...)`

* fix bug with not capturing the returned reason value

* pass reason= in acceptance async tests instead of msg=

* finalising deprecations of `msg` in `pytest.skip()` and `pytest.fail()`

* Update doc/en/deprecations.rst

Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>

* Update doc/en/deprecations.rst

Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>

* fix failing test after upstream merge

* adding deprecation to `pytest.exit(msg=...)`

* add docs for pytest.exit deprecations

* finalising deprecation of msg for pytest.skip, pytest.exit and pytest.fail

* hold a reference to the Scope instance to please mypy

Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2021-11-08 15:31:14 +01:00
..
customize.rst Replace hardcoded links to Github issues with extlinks (#9234) 2021-11-06 11:16:11 +02:00
exit-codes.rst Further rationalised "how to invoke pytest" material. (#8536) 2021-04-08 21:19:30 -03:00
fixtures.rst Include figures in PDF docs 2021-09-02 17:40:41 -06:00
index.rst Further rationalised "how to invoke pytest" material. (#8536) 2021-04-08 21:19:30 -03:00
plugin_list.rst [automated] Update plugin list (#9274) 2021-11-07 23:12:57 +02:00
reference.rst Deprecation of `msg=` for both `pytest.skip()` and `pytest.fail()`. (#8950) 2021-11-08 15:31:14 +01:00