diff --git a/changelog/3611.doc.rst b/changelog/3611.doc.rst new file mode 100644 index 000000000..fe19cc025 --- /dev/null +++ b/changelog/3611.doc.rst @@ -0,0 +1 @@ +The description above the example for ``@pytest.mark.skipif`` now better matches the code. diff --git a/doc/en/skipping.rst b/doc/en/skipping.rst index bfa6f3e75..cda67554d 100644 --- a/doc/en/skipping.rst +++ b/doc/en/skipping.rst @@ -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(): ...