diff options
| author | David Douard <david.douard@logilab.fr> | 2013-06-17 15:06:48 +0200 |
|---|---|---|
| committer | David Douard <david.douard@logilab.fr> | 2013-06-17 15:06:48 +0200 |
| commit | f1786ae74b5f22913c00e80deaacd7870f5e3d7e (patch) | |
| tree | b113d8e035aaca7562ea64384955ec6d806841ef /test/utils.py | |
| parent | d463a2b7bd376ed11d270903760b6a9ac762ef21 (diff) | |
| download | pylint-git-f1786ae74b5f22913c00e80deaacd7870f5e3d7e.tar.gz | |
astng has been renamed astroid
Diffstat (limited to 'test/utils.py')
| -rw-r--r-- | test/utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/utils.py b/test/utils.py index 3cf169961..6722e3292 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, |
