Skip to content

Commit 850a844

Browse files
authored
Merge pull request #8664 from hroncok/test_unittest-ignore_DeprecationWarning-from-twisted
Ignore DeprecationWarnings in test_trial_error
2 parents 045ad5a + 51293de commit 850a844

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)