From bd2a824c6864e8145b92e32abff8eb60f9e95294 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Fri, 2 Jun 2023 00:07:26 +0200 Subject: [PATCH] Fix pytest hookimpl warning --- tests/modules/conftest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/modules/conftest.py b/tests/modules/conftest.py index a2ee4b538..a1b4d2d8a 100644 --- a/tests/modules/conftest.py +++ b/tests/modules/conftest.py @@ -1,7 +1,7 @@ # SPDX-License-Identifier: MIT -# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs -# Copyright (C) 2012-2014 Bastian Kleineidam -# Copyright (C) 2015-2022 Tobias Gruetzmacher +# SPDX-FileCopyrightText: © 2004 Tristan Seligmann and Jonathan Jacobs +# SPDX-FileCopyrightText: © 2012 Bastian Kleineidam +# SPDX-FileCopyrightText: © 2015 Tobias Gruetzmacher import re import os from operator import attrgetter @@ -52,6 +52,6 @@ class LoadModScheduling(LoadScopeScheduling): return mod + "::" + test.split("/", 1)[0] -@pytest.mark.trylast() +@pytest.hookimpl(trylast=True) def pytest_xdist_make_scheduler(config, log): return LoadModScheduling(config, log)