summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Albrecht <palbrecht@mailbox.org>2021-12-03 14:11:43 +0100
committerGitHub <noreply@github.com>2021-12-03 14:11:43 +0100
commit28a33ef874cd63b92a32208e844b97f0c6a2f082 (patch)
treecb6dd8bcce2c53ba0aa92463623aded812cb6042
parentbce059acf1684e35c9a731e27cff2de16bf54de8 (diff)
downloadpylint-git-28a33ef874cd63b92a32208e844b97f0c6a2f082.tar.gz
Update outdated class name in "How to Write a Checker" test example (#5449)
* Update code example in "How to Write a Checker" `pylint.testutils.Message` got first renamed to `pylint.testutils.TestMessage` in 49776acdd and finally renamed to `pylint.testutils.MessageTest` in 24cbf8c33. * Add pylbrecht to contributors Co-authored-by: Philipp Albrecht <philipp.albrecht@momox.biz> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
-rw-r--r--CONTRIBUTORS.txt2
-rw-r--r--doc/how_tos/custom_checkers.rst2
2 files changed, 3 insertions, 1 deletions
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 625b38e04..72df6038c 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -583,5 +583,7 @@ contributors:
* Felix von Drigalski (felixvd): contributor
+* Philipp Albrecht (pylbrecht): contributor
+
* Allan Chandler (allanc65): contributor
- Fixed issue 5452, false positive missing-param-doc for multi-line Google-style params
diff --git a/doc/how_tos/custom_checkers.rst b/doc/how_tos/custom_checkers.rst
index 6cded973b..0f6ff6062 100644
--- a/doc/how_tos/custom_checkers.rst
+++ b/doc/how_tos/custom_checkers.rst
@@ -271,7 +271,7 @@ We can use the example code that we used for debugging as our test cases.
self.checker.visit_functiondef(func_node)
self.checker.visit_return(return_node_a)
with self.assertAddsMessages(
- pylint.testutils.Message(
+ pylint.testutils.MessageTest(
msg_id='non-unique-returns',
node=return_node_b,
),