Skip to content

Commit

Permalink
test: use modern pytest hook syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Oct 26, 2022
1 parent dcf532b commit 5fc2085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/balance_xdist_plugin.py
Expand Up @@ -104,7 +104,7 @@ def pytest_runtest_teardown(self, item):
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
Expand Down

0 comments on commit 5fc2085

Please sign in to comment.