Add explicit pytest.hookspec/hookimpl annotations, avoid legacy tryfirst/trylast marks

This commit is contained in:
Ran Benita
2021-11-02 09:23:06 +02:00
parent 18cd9b900c
commit b85b71cd22
7 changed files with 40 additions and 6 deletions

View File

@@ -212,7 +212,7 @@ class WorkerController:
ENDMARK = -1
class RemoteHook:
@pytest.mark.trylast
@pytest.hookimpl(trylast=True)
def pytest_xdist_getremotemodule(self):
return xdist.remote