diff --git a/tests/conftest.py b/tests/conftest.py index a1baee706..2f6ccc197 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -52,7 +52,7 @@ def pytest_configure(config): "markers", "longrun: mark test that is running slowly and should not be run regularly" ) if not config.option.longrun: - setattr(config.option, 'markexpr', 'not longrun') + config.option.markexpr = 'not longrun' class FixtureScheduler(LoadScopeScheduling):