Skip to content

Commit 22a2734

Browse files
authored
Merge pull request #3611 from AdamEr8/doc-fix-skipif
Doc Fix: skipif's example description
2 parents 630428c + 8cc2107 commit 22a2734

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog/3611.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The description above the example for ``@pytest.mark.skipif`` now better matches the code.

doc/en/skipping.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ during import time.
8080

8181
If you wish to skip something conditionally then you can use ``skipif`` instead.
8282
Here is an example of marking a test function to be skipped
83-
when run on a Python3.6 interpreter::
83+
when run on an interpreter earlier than Python3.6 ::
8484

8585
import sys
8686
@pytest.mark.skipif(sys.version_info < (3,6),
87-
reason="requires python3.6")
87+
reason="requires python3.6 or higher")
8888
def test_function():
8989
...
9090

0 commit comments

Comments
 (0)