diff options
author | Michal Nowikowski <godfryd@gmail.com> | 2014-07-25 16:21:29 +0200 |
---|---|---|
committer | Michal Nowikowski <godfryd@gmail.com> | 2014-07-25 16:21:29 +0200 |
commit | 199226744f90191d2c48f48c27a48ca720a9c439 (patch) | |
tree | bafc9d5fbbe477356f54f972769b8f0e3edf1337 | |
parent | 7ecfa5bdb3006a974b901d6e7ac6c670a8f33eb0 (diff) | |
download | pylint-199226744f90191d2c48f48c27a48ca720a9c439.tar.gz |
Tweaked spelling checker msg ids and removed them from exhaustivity tests.
-rw-r--r-- | checkers/spelling.py | 4 | ||||
-rw-r--r-- | test/test_func.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/checkers/spelling.py b/checkers/spelling.py index ec0a147..249a220 100644 --- a/checkers/spelling.py +++ b/checkers/spelling.py @@ -51,10 +51,10 @@ class SpellingInCommentsChecker(BaseTokenChecker): __implements__ = (ITokenChecker, IAstroidChecker) name = 'spelling' msgs = { - 'C8402': ('Wrong spelling of a word \'%s\' in a comment:\n%s\n%s\nDid you mean: \'%s\'?', + 'C0401': ('Wrong spelling of a word \'%s\' in a comment:\n%s\n%s\nDid you mean: \'%s\'?', 'wrong-spelling-in-comment', 'Used when a word in comment is not spelled correctly.'), - 'C8403': ('Wrong spelling of a word \'%s\' in a docstring:\n%s\n%s\nDid you mean: \'%s\'?', + 'C0402': ('Wrong spelling of a word \'%s\' in a docstring:\n%s\n%s\nDid you mean: \'%s\'?', 'wrong-spelling-in-docstring', 'Used when a word in docstring is not spelled correctly.'), } diff --git a/test/test_func.py b/test/test_func.py index 2d573c2..acd5c4a 100644 --- a/test/test_func.py +++ b/test/test_func.py @@ -59,6 +59,8 @@ class TestTests(testlib.TestCase): not_tested -= self.PORTED if PY3K: not_tested.remove('W0403') # relative-import + not_tested.remove("C0401") # requires optional lib python-enchant for spell checking + not_tested.remove("C0402") # requires optional lib python-enchant for spell checking self.assertFalse(not_tested) |