summaryrefslogtreecommitdiff
path: root/test/test_func.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2009-03-17 11:20:27 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2009-03-17 11:20:27 +0100
commit6871910d0fd98a3bdb9a4ea1e6bb7cc10a1f6001 (patch)
treec667c2f59932a57b8599ddf47c01c0d55d934003 /test/test_func.py
parentb9f77ab2d57f63c6dbb89ec4f9edb00890817f7b (diff)
downloadpylint-6871910d0fd98a3bdb9a4ea1e6bb7cc10a1f6001.tar.gz
fix python version handling in test_func
Diffstat (limited to 'test/test_func.py')
-rw-r--r--test/test_func.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test_func.py b/test/test_func.py
index d5eeaf0..1720b94 100644
--- a/test/test_func.py
+++ b/test/test_func.py
@@ -154,9 +154,10 @@ def make_tests(filter_rgx):
# skip those tests with python >= 2.3 since py2.3 detects them by itself
if PY23 and module_file == "func_unknown_encoding.py": #"func_nonascii_noencoding.py"):
continue
- if not PY24:
- if module_file == "func_noerror_staticmethod_as_decorator.py" or \
- module_file.endswith('py24.py'):
+ pyrestr = module_file.rsplit('_py', 1)[-1][:-3]
+ if pyrestr.isdigit(): # '24', '25'...
+ if sys.version_info < tuple([int(i) for i in pyrestr]):
+ print 'skip', module_file
continue
if not is_to_run(module_file):
continue