From 7ac8a88a05f3a316344af951f97181d57a26915c Mon Sep 17 00:00:00 2001 From: Raphael Pierzina Date: Wed, 30 Sep 2015 19:25:57 +0200 Subject: [PATCH] Remove pytest_runtest_setup from conftest.py --- doc/en/example/simple.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/doc/en/example/simple.rst b/doc/en/example/simple.rst index f75ae4ab2..03471b917 100644 --- a/doc/en/example/simple.rst +++ b/doc/en/example/simple.rst @@ -131,10 +131,6 @@ line option to control skipping of ``slow`` marked tests:: parser.addoption("--runslow", action="store_true", help="run slow tests") - def pytest_runtest_setup(item): - if 'slow' in item.keywords and not item.config.getoption("--runslow"): - pytest.skip("need --runslow option to run") - We can now write a test module like this:: # content of test_module.py