summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-10-26 19:54:10 -0400
committerNed Batchelder <ned@nedbatchelder.com>2022-10-26 19:54:10 -0400
commit5fc20859ff816fc9af56a50bf0690eac87b52d16 (patch)
tree5d72185d138cc4adb79df0dcf7ed1db32318d2d6
parentdcf532b8f9881d36f731939dc1f0deca01e311d7 (diff)
downloadpython-coveragepy-git-5fc20859ff816fc9af56a50bf0690eac87b52d16.tar.gz
test: use modern pytest hook syntax
-rw-r--r--tests/balance_xdist_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/balance_xdist_plugin.py b/tests/balance_xdist_plugin.py
index e4db6f63..170037e6 100644
--- a/tests/balance_xdist_plugin.py
+++ b/tests/balance_xdist_plugin.py
@@ -104,7 +104,7 @@ class BalanceXdistPlugin: # pragma: debugging
yield
self.write_duration_row(item, "teardown", time.time() - start)
- @pytest.mark.trylast
+ @pytest.hookimpl(trylast=True)
def pytest_xdist_make_scheduler(self, config, log):
"""Create our BalancedScheduler using time data from the last run."""
# Assign tests to chunks