28 lines
994 B
Diff
28 lines
994 B
Diff
|
From d9635d560d30fd732c878a9f5fbddd85d4345a48 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||
|
Date: Wed, 12 May 2021 13:30:46 +0200
|
||
|
Subject: [PATCH] Ignore DeprecationWarnings in test_trial_error
|
||
|
|
||
|
Fixes https://github.com/pytest-dev/pytest/issues/8663
|
||
|
---
|
||
|
testing/test_unittest.py | 4 +++-
|
||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/testing/test_unittest.py b/testing/test_unittest.py
|
||
|
index 8b00cb8..de8fc5c 100644
|
||
|
--- a/testing/test_unittest.py
|
||
|
+++ b/testing/test_unittest.py
|
||
|
@@ -533,7 +533,9 @@ class TestTrialUnittest:
|
||
|
# will crash both at test time and at teardown
|
||
|
"""
|
||
|
)
|
||
|
- result = testdir.runpytest("-vv", "-oconsole_output_style=classic")
|
||
|
+ result = testdir.runpytest(
|
||
|
+ "-vv", "-oconsole_output_style=classic", "-W", "ignore::DeprecationWarning"
|
||
|
+ )
|
||
|
result.stdout.fnmatch_lines(
|
||
|
[
|
||
|
"test_trial_error.py::TC::test_four FAILED",
|
||
|
|
||
|
|