Fix skip signature (#8392)

* Fix test_strict_and_skip

The `--strict` argument was removed in #2552, but the removal wasn't
actually correct - see #1472.

* Fix argument handling in pytest.mark.skip

See #8384

* Raise from None

* Fix test name
This commit is contained in:
Florian Bruhin
2021-03-04 11:56:21 +01:00
committed by GitHub
parent 4dbb29431a
commit c14a9adba3
4 changed files with 24 additions and 10 deletions

View File

@@ -150,7 +150,7 @@ pytest.mark.skip
Unconditionally skip a test function.
.. py:function:: pytest.mark.skip(*, reason=None)
.. py:function:: pytest.mark.skip(reason=None)
:keyword str reason: Reason why the test function is being skipped.