From 6a1c33e168adabd5759b69f3940ac85e6a483d89 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 20 Apr 2024 09:46:32 +0200 Subject: [PATCH] Don't use setattr --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):