Skip to content

Commit 28a33ef

Browse files
pylbrechtPhilipp AlbrechtPierre-Sassoulas
authored
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 49776ac and finally renamed to `pylint.testutils.MessageTest` in 24cbf8c. * Add pylbrecht to contributors Co-authored-by: Philipp Albrecht <[email protected]> Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent bce059a commit 28a33ef

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CONTRIBUTORS.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,5 +583,7 @@ contributors:
583583

584584
* Felix von Drigalski (felixvd): contributor
585585

586+
* Philipp Albrecht (pylbrecht): contributor
587+
586588
* Allan Chandler (allanc65): contributor
587589
- Fixed issue 5452, false positive missing-param-doc for multi-line Google-style params

doc/how_tos/custom_checkers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ We can use the example code that we used for debugging as our test cases.
271271
self.checker.visit_functiondef(func_node)
272272
self.checker.visit_return(return_node_a)
273273
with self.assertAddsMessages(
274-
pylint.testutils.Message(
274+
pylint.testutils.MessageTest(
275275
msg_id='non-unique-returns',
276276
node=return_node_b,
277277
),

0 commit comments

Comments
 (0)