From 2e3ac3bd311ecf4d26032cd029dcc5e92170fe7f Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 28 Jul 2015 17:55:17 +0200 Subject: testsuite: Support for ancient pylint versions For Python2.4 and Python2.5 we need very old pylint versions (0.21.x). So we have to work around some bugs: - This adds some ugly monkey patching to backport some bugfixes from newer pylint versions (that does not support Python2.4 anymore). - Another problem is, that pylint-0.24 changed its message IDs. So this translates the new IDs into the older ones, so that the old pylint can match the disabled messages. - The newer version of pylint support more messages and some of the new messages have to be disabled. The old pylint versions have to silently ignore unknown message ids. - The compatible astng version of the old pylint does not support register_transformer, so we need to build out own variant by monkey patching the ASTNGBuilder. --- testsuite/pylintrc.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuite/pylintrc.conf') diff --git a/testsuite/pylintrc.conf b/testsuite/pylintrc.conf index 50ece77db..ce7e407df 100644 --- a/testsuite/pylintrc.conf +++ b/testsuite/pylintrc.conf @@ -19,7 +19,7 @@ persistent=no # List of plugins (as comma separated values of python modules names) to load, # usually to register additional checkers. -load-plugins=ext.exception_messages,ext.ssl_protocols +load-plugins=ext.exception_messages,ext.ssl_protocols,ext.pylint_compat [MESSAGES CONTROL] -- cgit v1.2.3-1-g7c22