diff options
| author | Julien Cristau <julien.cristau@logilab.fr> | 2013-06-19 17:45:31 +0200 |
|---|---|---|
| committer | Julien Cristau <julien.cristau@logilab.fr> | 2013-06-19 17:45:31 +0200 |
| commit | 303c4ee6904c8fe9eaa42723ccd492a5d8577ec1 (patch) | |
| tree | 5963e4169e5de6ea6217a2c0f2a7aeabc6c5649f /test/test_func.py | |
| parent | 4cb9a4d440a05a4378b35f3fe37b29bf75de97bf (diff) | |
| download | pylint-303c4ee6904c8fe9eaa42723ccd492a5d8577ec1.tar.gz | |
Use maxversion on a few messages
- duplicate keyword arguments are a syntax error starting with 2.6
- the builtin map and filter functions changed in 3.0
- exec is no longer a statement in 3.0
Diffstat (limited to 'test/test_func.py')
| -rw-r--r-- | test/test_func.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/test/test_func.py b/test/test_func.py index 06e29aa..56bb82c 100644 --- a/test/test_func.py +++ b/test/test_func.py @@ -27,7 +27,6 @@ from logilab.common import testlib from pylint.testutils import (make_tests, LintTestUsingModule, LintTestUsingFile, cb_test_gen, linter, test_reporter) -PY26 = sys.version_info >= (2, 6) PY3K = sys.version_info >= (3, 0) # Configure paths @@ -63,21 +62,13 @@ class TestTests(testlib.TestCase): continue todo.sort() if PY3K: - rest = ['E1122', 'I0001', - # no more map - 'W0110', - # deprecated raise syntax removed from py3k - 'W0121', - # deprecated exec statement removed from py3k : - 'W0122', + rest = ['I0001', # XXX : no use case for now : 'W0402', # deprecated module 'W0403', # implicit relative import 'W0410', # __future__ import not first statement ] self.assertEqual(todo, rest) - elif PY26: - self.assertEqual(todo, ['E1122', 'I0001']) else: self.assertEqual(todo, ['I0001']) |
