summaryrefslogtreecommitdiff
path: root/tests/reporters
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2022-11-23 04:04:58 -0500
committerGitHub <noreply@github.com>2022-11-23 10:04:58 +0100
commit694d3024dbfea06aefd9288a99d7a375fe100859 (patch)
treea5c9db9cfbbbf742efa4f84b4038ba16154d5783 /tests/reporters
parente2ef840528de633fdf8b826a9d7068345d8f371f (diff)
downloadpylint-git-694d3024dbfea06aefd9288a99d7a375fe100859.tar.gz
Fail pytest runs on warnings (#7809)
* Catch DeprecationWarning in pyreverse Follow-up to #6869 * Patch use of deprecated `astroid.node_classes` in test * Ignore DeprecationWarning in test_parseable_output_regression Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/reporters')
-rw-r--r--tests/reporters/unittest_reporting.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/reporters/unittest_reporting.py b/tests/reporters/unittest_reporting.py
index 6b5797237..7b8139119 100644
--- a/tests/reporters/unittest_reporting.py
+++ b/tests/reporters/unittest_reporting.py
@@ -137,6 +137,7 @@ def test_parseable_output_deprecated() -> None:
def test_parseable_output_regression() -> None:
output = StringIO()
with warnings.catch_warnings(record=True):
+ warnings.simplefilter("ignore", category=DeprecationWarning)
linter = PyLinter(reporter=ParseableTextReporter())
checkers.initialize(linter)