From 2174f3ce37c8f4c502e4416c838a67eb25d7ade2 Mon Sep 17 00:00:00 2001 From: Christian Theune Date: Wed, 12 Aug 2015 07:38:04 +0200 Subject: [PATCH] Fix accidental inversion in skip example. --- doc/en/skipping.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/en/skipping.rst b/doc/en/skipping.rst index e8a36186a..77456e2de 100644 --- a/doc/en/skipping.rst +++ b/doc/en/skipping.rst @@ -83,7 +83,7 @@ As with all function :ref:`marking ` you can skip test functions at the `whole class- or module level`_. If your code targets python2.6 or above you use the skipif decorator (and any other marker) on classes:: - @pytest.mark.skipif(sys.platform == 'win32', + @pytest.mark.skipif(sys.platform != 'win32', reason="requires windows") class TestPosixCalls: @@ -97,7 +97,7 @@ If your code targets python2.5 where class-decorators are not available, you can set the ``pytestmark`` attribute of a class:: class TestPosixCalls: - pytestmark = pytest.mark.skipif(sys.platform == 'win32', + pytestmark = pytest.mark.skipif(sys.platform != 'win32', reason="requires Windows") def test_function(self):