Skip to content

Commit ae5c0c0

Browse files
authored
Merge pull request #180 from GergelyKalmar/master
Fix deprecation warning
2 parents 34104e9 + 8839301 commit ae5c0c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_factoryboy/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def factoryboy_request() -> Request:
110110
return Request()
111111

112112

113-
@pytest.mark.tryfirst
113+
@pytest.hookimpl(tryfirst=True)
114114
def pytest_runtest_call(item: Item) -> None:
115115
"""Before the test item is called."""
116116
# TODO: We should instead do an `if isinstance(item, Function)`.

0 commit comments

Comments
 (0)