summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-06-21 10:34:33 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-08-05 21:48:42 +0200
commitf8881bc863706775d6168f438cd9d3075c9d9dea (patch)
tree6b855a96094d79871a56dc5ad64f2f8dd0706a9d /tests
parentda4471aa4c907a6ef364f0385ed69496a154efa5 (diff)
downloadastroid-git-f8881bc863706775d6168f438cd9d3075c9d9dea.tar.gz
Add 'Pattern' to the astroid.nodes's API
Diffstat (limited to 'tests')
-rw-r--r--tests/unittest_nodes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittest_nodes.py b/tests/unittest_nodes.py
index c6926be4..dde4dfbc 100644
--- a/tests/unittest_nodes.py
+++ b/tests/unittest_nodes.py
@@ -38,7 +38,7 @@ import pytest
import astroid
from astroid import Uninferable, bases, builder
from astroid import context as contextmod
-from astroid import node_classes, nodes, parse, test_utils, transforms, util
+from astroid import nodes, parse, test_utils, transforms, util
from astroid.const import BUILTINS, PY38_PLUS, PY310_PLUS, Context
from astroid.exceptions import (
AstroidBuildingError,
@@ -543,7 +543,7 @@ from ..cave import wine\n\n"""
module = builder.parse(code)
handler_type = module.body[1].handlers[0].type
- excs = list(node_classes.unpack_infer(handler_type))
+ excs = list(nodes.unpack_infer(handler_type))
# The number of returned object can differ on Python 2
# and Python 3. In one version, an additional item will
# be returned, from the _pickle module, which is not