Skip to content

Commit f508a52

Browse files
Merge pull request pytest-dev#1225 from pytest-dev/skipping-docs-inconsistency
Fix inconsistency in skipif example
2 parents 41f1979 + 382efc6 commit f508a52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/en/skipping.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ As with all function :ref:`marking <mark>` you can skip test functions at the
8383
`whole class- or module level`_. If your code targets python2.6 or above you
8484
use the skipif decorator (and any other marker) on classes::
8585

86-
@pytest.mark.skipif(sys.platform != 'win32',
87-
reason="requires windows")
86+
@pytest.mark.skipif(sys.platform == 'win32',
87+
reason="does not run on windows")
8888
class TestPosixCalls:
8989

9090
def test_function(self):
@@ -97,8 +97,8 @@ If your code targets python2.5 where class-decorators are not available,
9797
you can set the ``pytestmark`` attribute of a class::
9898

9999
class TestPosixCalls:
100-
pytestmark = pytest.mark.skipif(sys.platform != 'win32',
101-
reason="requires Windows")
100+
pytestmark = pytest.mark.skipif(sys.platform == 'win32',
101+
reason="does not run on windows")
102102

103103
def test_function(self):
104104
"will not be setup or run under 'win32' platform"

0 commit comments

Comments
 (0)