Merge pull request #3611 from AdamEr8/doc-fix-skipif
Doc Fix: skipif's example description
This commit is contained in:
commit
22a2734d9a
|
@ -0,0 +1 @@
|
|||
The description above the example for ``@pytest.mark.skipif`` now better matches the code.
|
|
@ -80,11 +80,11 @@ during import time.
|
|||
|
||||
If you wish to skip something conditionally then you can use ``skipif`` instead.
|
||||
Here is an example of marking a test function to be skipped
|
||||
when run on a Python3.6 interpreter::
|
||||
when run on an interpreter earlier than Python3.6 ::
|
||||
|
||||
import sys
|
||||
@pytest.mark.skipif(sys.version_info < (3,6),
|
||||
reason="requires python3.6")
|
||||
reason="requires python3.6 or higher")
|
||||
def test_function():
|
||||
...
|
||||
|
||||
|
|
Loading…
Reference in New Issue