[FIX] test_pylint: not all versions of pylint have a __version__ attribute

This commit is contained in:
Christophe Simonis
2016-08-11 16:23:03 +02:00
parent 4015e5a929
commit 13a6b7052b
@@ -32,8 +32,8 @@ class TestPyLint(TransactionCase):
def test_pylint(self):
if pylint is None:
self._skip_test('please install pylint')
if LooseVersion(pylint.__version__) < LooseVersion('1.6.4'):
self._skip_test('please upgrade pylint')
if LooseVersion(getattr(pylint, '__version__', '0.0.1')) < LooseVersion('1.6.4'):
self._skip_test('please upgrade pylint to >= 1.6.4')
paths = [tools.config['root_path']]
for module in get_modules():