Skip to content

Commit

Permalink
Update outdated class name in "How to Write a Checker" test example (#…
Browse files Browse the repository at this point in the history
…5449)

* Update code example in "How to Write a Checker"

`pylint.testutils.Message` got first renamed to
`pylint.testutils.TestMessage` in 49776ac and finally renamed to
`pylint.testutils.MessageTest` in 24cbf8c.

* Add pylbrecht to contributors

Co-authored-by: Philipp Albrecht <philipp.albrecht@momox.biz>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
  • Loading branch information
3 people committed Dec 3, 2021
1 parent bce059a commit 28a33ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CONTRIBUTORS.txt
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/how_tos/custom_checkers.rst
Expand Up @@ -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,
),
Expand Down

0 comments on commit 28a33ef

Please sign in to comment.