diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-07-13 23:28:24 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-07-13 23:28:24 +0300 |
commit | 1ea8e66df8e3e922900c95b08ce0ccb814437767 (patch) | |
tree | e39ec67cb66fe124364f7a310fb96a2d301a486b /pylint/testutils.py | |
parent | de2f313c5ca5acdb640bab62a690b95802caea62 (diff) | |
download | pylint-1ea8e66df8e3e922900c95b08ce0ccb814437767.tar.gz |
Update pylint to use the new astroid.parse, not testutils.build_module.
Diffstat (limited to 'pylint/testutils.py')
-rw-r--r-- | pylint/testutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/testutils.py b/pylint/testutils.py index c7d8e1d..adc4e0c 100644 --- a/pylint/testutils.py +++ b/pylint/testutils.py @@ -30,7 +30,7 @@ from glob import glob from os import linesep, getcwd, sep from os.path import abspath, basename, dirname, isdir, join, splitext -from astroid import test_utils +import astroid from pylint import checkers from pylint.utils import PyLintASTWalker @@ -408,6 +408,6 @@ def create_tempfile(content=None): def create_file_backed_module(code): """Create an astroid module for the given code, backed by a real file.""" with create_tempfile() as temp: - module = test_utils.build_module(code) + module = astroid.parse(code) module.file = temp yield module |