From ad5497efa3cc3d430af64c21ac400e5718f23115 Mon Sep 17 00:00:00 2001 From: Novikov Sergey Date: Wed, 29 May 2024 17:37:14 +0200 Subject: [PATCH] Update pytest decoration --- pytest_parallel/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_parallel/__init__.py b/pytest_parallel/__init__.py index e584800..ccc7a5a 100644 --- a/pytest_parallel/__init__.py +++ b/pytest_parallel/__init__.py @@ -218,7 +218,7 @@ def __init__(self, config): self.workers = workers - @pytest.mark.tryfirst + @pytest.hookimpl(tryfirst=True) def pytest_sessionstart(self, session): # make the session threadsafe _pytest.runner.SetupState = ThreadLocalSetupState