[FIX] test_pylint: not all versions of pylint have a __version__ attribute
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user