summaryrefslogtreecommitdiff
path: root/test/utils.py
diff options
context:
space:
mode:
authorDavid Douard <david.douard@logilab.fr>2013-06-17 15:06:48 +0200
committerDavid Douard <david.douard@logilab.fr>2013-06-17 15:06:48 +0200
commit34e999fc8d56fdeadda39bb8f7122e203af7d869 (patch)
tree85c406f60ea59578241ac0959591720d07fa0fda /test/utils.py
parentb4a281669859719bf13e01b81c6d979fcc0ea2d7 (diff)
downloadpylint-34e999fc8d56fdeadda39bb8f7122e203af7d869.tar.gz
astng has been renamed astroid
Diffstat (limited to 'test/utils.py')
-rw-r--r--test/utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/utils.py b/test/utils.py
index 3cf1699..6722e32 100644
--- a/test/utils.py
+++ b/test/utils.py
@@ -6,10 +6,10 @@ import sys
from os.path import join, dirname, abspath
from logilab.common.testlib import TestCase
-from logilab.astng import MANAGER
+from astroid import MANAGER
-def _astng_wrapper(func, modname):
+def _astroid_wrapper(func, modname):
return func(modname)
@@ -22,12 +22,12 @@ def _sorted_file(path):
return '\n'.join(lines)
def get_project(module, name=None):
- """return a astng project representation
+ """return a astroid project representation
"""
manager = MANAGER
# flush cache
manager._modules_by_name = {}
- return manager.project_from_files([module], _astng_wrapper,
+ return manager.project_from_files([module], _astroid_wrapper,
project_name=name)
DEFAULTS = {'all_ancestors': None, 'show_associated': None,