Fix pytest hookimpl warning

This commit is contained in:
Tobias Gruetzmacher 2023-06-02 00:07:26 +02:00
parent 65f3c8be3c
commit bd2a824c68
No known key found for this signature in database

View file

@ -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)