(config, items)
| 23 | |
| 24 | |
| 25 | def pytest_collection_modifyitems(config, items): |
| 26 | if config.getoption("--slow"): |
| 27 | # --runslow given in cli: do not skip slow tests |
| 28 | return |
| 29 | skip_slow = pytest.mark.skip(reason="need --slow option to run") |
| 30 | for item in items: |
| 31 | if "slow" in item.keywords: |
| 32 | item.add_marker(skip_slow) |
| 33 | |
| 34 | # Config |
| 35 | if sys.platform == "win32": |