Merge pull request #8664 from hroncok/test_unittest-ignore_DeprecationWarning-from-twisted

Ignore DeprecationWarnings in test_trial_error
This commit is contained in:
Ran Benita 2021-05-13 17:27:43 +03:00 committed by GitHub
commit 850a844779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",