Fix accidental inversion in skip example.

This commit is contained in:
Christian Theune 2015-08-12 07:38:04 +02:00
parent 73fdda0e45
commit 2174f3ce37
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ As with all function :ref:`marking <mark>` you can skip test functions at the
`whole class- or module level`_. If your code targets python2.6 or above you `whole class- or module level`_. If your code targets python2.6 or above you
use the skipif decorator (and any other marker) on classes:: 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") reason="requires windows")
class TestPosixCalls: 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:: you can set the ``pytestmark`` attribute of a class::
class TestPosixCalls: class TestPosixCalls:
pytestmark = pytest.mark.skipif(sys.platform == 'win32', pytestmark = pytest.mark.skipif(sys.platform != 'win32',
reason="requires Windows") reason="requires Windows")
def test_function(self): def test_function(self):