[foldunder] do not fail if pylints imports fail
authorPaul Tonelli <paul.tonelli@logilab.fr>
Tue, 22 Apr 2014 15:51:29 +0200
changeset 1445 c3225a2d834d
parent 1444 67ac48f1ad53
child 1446 3e7642036477
[foldunder] do not fail if pylints imports fail
test/test_functional.py
--- a/test/test_functional.py	Tue Apr 22 15:49:20 2014 +0200
+++ b/test/test_functional.py	Tue Apr 22 15:51:29 2014 +0200
@@ -41,7 +41,11 @@
         self.run_plan(te)
         exp = {u'pyunit': u'nodata'}
         try:
-            import pylint
+            from pylint import checkers as pycheckers
+            from pylint.lint import PyLinter
+            from pylint.__pkginfo__ import version as pylint_version
+            from pylint.interfaces import IReporter
+            from pylint.reporters import BaseReporter
             exp['pylint'] = u'error'
         except:
             pass