summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Marek <shlomme@gmail.com>2014-07-25 18:00:32 +0200
committerTorsten Marek <shlomme@gmail.com>2014-07-25 18:00:32 +0200
commitbffb82e5c6a067b5463f24a33b20e7e9b2e9b956 (patch)
tree653bbe1a11203bef5faacced2cca438f7330e703
parent68c658979adab28b422aa79eb18be93f543412d3 (diff)
downloadpylint-git-bffb82e5c6a067b5463f24a33b20e7e9b2e9b956.tar.gz
Mark 'relative-import' as only being present in Python 2.*.
-rw-r--r--checkers/imports.py5
-rw-r--r--test/test_func.py2
2 files changed, 3 insertions, 4 deletions
diff --git a/checkers/imports.py b/checkers/imports.py
index 3242b75d8..5964a2660 100644
--- a/checkers/imports.py
+++ b/checkers/imports.py
@@ -139,8 +139,9 @@ MSGS = {
'Used a module marked as deprecated is imported.'),
'W0403': ('Relative import %r, should be %r',
'relative-import',
- 'Used when an import relative to the package directory is \
- detected.'),
+ 'Used when an import relative to the package directory is '
+ 'detected.',
+ {'maxversion': (3, 0)}),
'W0404': ('Reimport %r (imported line %s)',
'reimported',
'Used when a module is reimported multiple times.'),
diff --git a/test/test_func.py b/test/test_func.py
index 51b6ba367..371c82954 100644
--- a/test/test_func.py
+++ b/test/test_func.py
@@ -58,8 +58,6 @@ class TestTests(testlib.TestCase):
except KeyError:
continue
not_tested -= self.PORTED
- if PY3K:
- not_tested.remove('W0403') # relative-import
self.assertFalse(not_tested)