From 5fc20859ff816fc9af56a50bf0690eac87b52d16 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 26 Oct 2022 19:54:10 -0400 Subject: test: use modern pytest hook syntax --- tests/balance_xdist_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.1