Skip to content

Commit 023a4ed

Browse files
committed
Move off deprecated pytest API
Signed-off-by: Bernát Gábor <[email protected]>
1 parent 9da1baf commit 023a4ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tox/pytest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def pytest_configure(config: PyTestConfig) -> None:
447447
config.addinivalue_line("markers", "plugin_test")
448448

449449

450-
@pytest.mark.trylast()
450+
@pytest.hookimpl(trylast=True) # type: ignore # not typed decorator
451451
def pytest_collection_modifyitems(config: PyTestConfig, items: list[Function]) -> None:
452452
# do not require flags if called directly
453453
if len(items) == 1: # pragma: no cover # hard to test

0 commit comments

Comments
 (0)