From 0037b0db7e910f7a7f4dc1bab55bc53770fd9df9 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 11 Jul 2015 20:14:26 +0200 Subject: [PATCH] Actually run OS X tests on OS X. --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 4d8e6845b..6673d08dc 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -211,7 +211,7 @@ def pytest_runtest_setup(item): pytest.skip("Requires Windows.") elif item.get_marker('linux') and not sys.platform.startswith('linux'): pytest.skip("Requires Linux.") - elif item.get_marker('osx') and os.name != 'darwin': + elif item.get_marker('osx') and sys.platform != 'darwin': pytest.skip("Requires OS X.") elif item.get_marker('not_frozen') and getattr(sys, 'frozen', False): pytest.skip("Can't be run when frozen!")