summaryrefslogtreecommitdiff
path: root/pylint/testutils.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-12-17 03:08:25 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2015-12-17 03:08:25 +0200
commitdc071966398d26159773ec627c954cf651d3036e (patch)
tree845cbc45a3399c17837bf4c2d03e1e40e2e7c74d /pylint/testutils.py
parent45780992de1fe5b55c756a2f279052ba8d36ad5f (diff)
downloadpylint-git-dc071966398d26159773ec627c954cf651d3036e.tar.gz
Remove features in 1.6.0 which were scheduled for removal.
Diffstat (limited to 'pylint/testutils.py')
-rw-r--r--pylint/testutils.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pylint/testutils.py b/pylint/testutils.py
index 551d0c8c8..f8906fbf4 100644
--- a/pylint/testutils.py
+++ b/pylint/testutils.py
@@ -104,9 +104,12 @@ class TestReporter(BaseReporter):
self.out = StringIO()
self.messages = []
- def add_message(self, msg_id, location, msg):
+ def handle_message(self, msg):
"""manage message of different type and in the context of path """
- _, _, obj, line, _ = location
+ obj = msg.obj
+ line = msg.line
+ msg_id = msg.msg_id
+ msg = msg.msg
self.message_ids[msg_id] = 1
if obj:
obj = ':%s' % obj