diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-10-26 19:54:10 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-10-26 19:54:10 -0400 |
commit | 5fc20859ff816fc9af56a50bf0690eac87b52d16 (patch) | |
tree | 5d72185d138cc4adb79df0dcf7ed1db32318d2d6 | |
parent | dcf532b8f9881d36f731939dc1f0deca01e311d7 (diff) | |
download | python-coveragepy-git-5fc20859ff816fc9af56a50bf0690eac87b52d16.tar.gz |
test: use modern pytest hook syntax
-rw-r--r-- | tests/balance_xdist_plugin.py | 2 |
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 |