summaryrefslogtreecommitdiff
path: root/test/test_func.py
diff options
context:
space:
mode:
authorTorsten Marek <tmarek@google.com>2013-11-06 10:47:04 -0800
committerTorsten Marek <tmarek@google.com>2013-11-06 10:47:04 -0800
commitba78cbf5fca401f687059949ac9f51f0a526562e (patch)
tree781750ab8cdf6de8a37787e32c515eee547c5636 /test/test_func.py
parentb0311bc252cbc36078075aa3dd1acde0a45d933b (diff)
downloadpylint-ba78cbf5fca401f687059949ac9f51f0a526562e.tar.gz
Take first steps to use the symbolic name internally instead of the numeric id.
This changeset changes utils.py to use the symbolic name as the primary key in _messages, and the numeric ID as an alternative name in a new dictionary. Also prepares the codebase for supporting renamed messages.
Diffstat (limited to 'test/test_func.py')
-rw-r--r--test/test_func.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_func.py b/test/test_func.py
index 56bb82c..833d727 100644
--- a/test/test_func.py
+++ b/test/test_func.py
@@ -54,7 +54,7 @@ class TestTests(testlib.TestCase):
@testlib.tag('coverage')
def test_exhaustivity(self):
# skip fatal messages
- todo = [msgid for msgid in linter._messages if msgid[0] != 'F']
+ todo = [msg.msgid for msg in linter.messages if msg.msgid[0] != 'F']
for msgid in test_reporter.message_ids:
try:
todo.remove(msgid)