Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/3611.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The description above the example for ``@pytest.mark.skipif`` now better matches the code.
4 changes: 2 additions & 2 deletions doc/en/skipping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the reason "requires python3.6" should also change to "requires python3.6 or higher" to fully match the condition

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed!

reason="requires python3.6")
reason="requires python3.6 or higher")
def test_function():
...

Expand Down