Skip to content

Commit 51293de

Browse files
committed
Ignore DeprecationWarnings in test_trial_error
Fixes #8663
1 parent 045ad5a commit 51293de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testing/test_unittest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,9 @@ def f(_):
570570
# will crash both at test time and at teardown
571571
"""
572572
)
573-
result = pytester.runpytest("-vv", "-oconsole_output_style=classic")
573+
result = pytester.runpytest(
574+
"-vv", "-oconsole_output_style=classic", "-W", "ignore::DeprecationWarning"
575+
)
574576
result.stdout.fnmatch_lines(
575577
[
576578
"test_trial_error.py::TC::test_four FAILED",

0 commit comments

Comments
 (0)