summaryrefslogtreecommitdiff
path: root/test/test_func.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-11-17 11:51:22 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-11-17 11:51:22 +0100
commitafc30a4a7bf5f3a14a75180a05d5c74e8a4a1de5 (patch)
treeab4bd801fc96e50687989ba7401d9714096e130a /test/test_func.py
parentfdca1d446d9de6dac6584c79ab938e370b969a30 (diff)
downloadpylint-afc30a4a7bf5f3a14a75180a05d5c74e8a4a1de5.tar.gz
tests: refactor possibility to have two messages or two inputs
Diffstat (limited to 'test/test_func.py')
-rw-r--r--test/test_func.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/test_func.py b/test/test_func.py
index 9765088..a3c7361 100644
--- a/test/test_func.py
+++ b/test/test_func.py
@@ -179,17 +179,10 @@ def make_tests(filter_rgx):
is_to_run = lambda x: 1
tests = []
for module_file, messages_file in get_tests_info('func_', '.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]):
- continue
- if pyrestr.startswith('_') and pyrestr[1:].isdigit():
- # skip test for higher python versions
- if sys.version_info >= ( int(pyrestr[1]), int(pyrestr[2]) ):
- continue
if not is_to_run(module_file):
continue
base = module_file.replace('func_', '').replace('.py', '')
+
dependencies = get_tests_info(base, '.py')
class LintTestUsingModuleTC(LintTestUsingModule):