From 26c835eea50265a9c96a08dec912067aafa6a6cc Mon Sep 17 00:00:00 2001 From: Kartik Singhal Date: Tue, 5 Jan 2016 18:43:03 -0500 Subject: [PATCH] Correct platform name osx -> darwin --- doc/en/example/markers.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/en/example/markers.rst b/doc/en/example/markers.rst index aaca80fb2..95554189b 100644 --- a/doc/en/example/markers.rst +++ b/doc/en/example/markers.rst @@ -436,7 +436,7 @@ marking platform specific tests with pytest .. regendoc:wipe Consider you have a test suite which marks tests for particular platforms, -namely ``pytest.mark.osx``, ``pytest.mark.win32`` etc. and you +namely ``pytest.mark.darwin``, ``pytest.mark.win32`` etc. and you also have tests that run on all platforms and have no specific marker. If you now want to have a way to only run the tests for your particular platform, you could use the following plugin:: @@ -446,7 +446,7 @@ for your particular platform, you could use the following plugin:: import sys import pytest - ALL = set("osx linux2 win32".split()) + ALL = set("darwin linux2 win32".split()) def pytest_runtest_setup(item): if isinstance(item, item.Function): @@ -462,7 +462,7 @@ Let's do a little test file to show how this looks like:: import pytest - @pytest.mark.osx + @pytest.mark.darwin def test_if_apple_is_evil(): pass