summaryrefslogtreecommitdiff
path: root/pylint/test/unittest_utils.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-07-13 23:28:24 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-07-13 23:28:24 +0300
commit981829d451abe9b1cdc78cc8d76a8ab3bf8397d1 (patch)
tree492c764a968aa39dcbbabe2cd591603363a16443 /pylint/test/unittest_utils.py
parent19709366ac41c5ce7a1bf9c7f48b1aaca6c8e9bf (diff)
downloadpylint-git-981829d451abe9b1cdc78cc8d76a8ab3bf8397d1.tar.gz
Update pylint to use the new astroid.parse, not testutils.build_module.
Diffstat (limited to 'pylint/test/unittest_utils.py')
-rw-r--r--pylint/test/unittest_utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pylint/test/unittest_utils.py b/pylint/test/unittest_utils.py
index d631dbbea..193e45242 100644
--- a/pylint/test/unittest_utils.py
+++ b/pylint/test/unittest_utils.py
@@ -13,7 +13,8 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import unittest
-from astroid import test_utils
+import astroid
+
from pylint import utils
from pylint import interfaces
from pylint.checkers.utils import check_messages
@@ -54,7 +55,7 @@ class PyLintASTWalkerTest(unittest.TestCase):
walker = utils.PyLintASTWalker(linter)
checker = self.Checker()
walker.add_checker(checker)
- walker.walk(test_utils.build_module("x = func()"))
+ walker.walk(astroid.parse("x = func()"))
self.assertEqual(set(['module', 'assname']), checker.called)