Merge pull request #3611 from AdamEr8/doc-fix-skipif

Doc Fix: skipif's example description
This commit is contained in:
Anthony Sottile 2018-06-23 14:06:30 -07:00 committed by GitHub
commit 22a2734d9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
changelog/3611.doc.rst Normal file
View File

@ -0,0 +1 @@
The description above the example for ``@pytest.mark.skipif`` now better matches the code.

View File

@ -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():
...