Ignore DeprecationWarnings in test_trial_error

Fixes https://github.com/pytest-dev/pytest/issues/8663
This commit is contained in:
Miro Hrončok 2021-05-12 13:30:46 +02:00
parent 045ad5ac2d
commit 51293de324
1 changed files with 3 additions and 1 deletions

View File

@ -570,7 +570,9 @@ class TestTrialUnittest:
# will crash both at test time and at teardown
"""
)
result = pytester.runpytest("-vv", "-oconsole_output_style=classic")
result = pytester.runpytest(
"-vv", "-oconsole_output_style=classic", "-W", "ignore::DeprecationWarning"
)
result.stdout.fnmatch_lines(
[
"test_trial_error.py::TC::test_four FAILED",