Remove pytest_runtest_setup from conftest.py

This commit is contained in:
Raphael Pierzina 2015-09-30 19:25:57 +02:00
parent 639ae0cfe0
commit 7ac8a88a05
1 changed files with 0 additions and 4 deletions

View File

@ -131,10 +131,6 @@ line option to control skipping of ``slow`` marked tests::
parser.addoption("--runslow", action="store_true", parser.addoption("--runslow", action="store_true",
help="run slow tests") 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:: We can now write a test module like this::
# content of test_module.py # content of test_module.py