Skip to content

Commit bc46700

Browse files
committed
Fix test to not break in pytest 8.0
1 parent f9583eb commit bc46700

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎tests/steps/test_given.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,11 @@ def _(foo):
7878
"""
7979
)
8080
)
81-
result = pytester.runpytest("-W", "error::DeprecationWarning", "-W", "error::PendingDeprecationWarning")
81+
# fmt: off
82+
result = pytester.runpytest(
83+
"-W", "error::DeprecationWarning",
84+
"-W", "error::PendingDeprecationWarning",
85+
"-W", "ignore:A private pytest class or function was used:pytest.PytestDeprecationWarning",
86+
)
87+
# fmat: on
8288
result.assert_outcomes(passed=1)

0 commit comments

Comments
 (0)