diff --git a/openerp/addons/test_pylint/tests/test_pylint.py b/openerp/addons/test_pylint/tests/test_pylint.py index 18986542198..ae4415dca1c 100644 --- a/openerp/addons/test_pylint/tests/test_pylint.py +++ b/openerp/addons/test_pylint/tests/test_pylint.py @@ -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():