From f8881bc863706775d6168f438cd9d3075c9d9dea Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Mon, 21 Jun 2021 10:34:33 +0200 Subject: Add 'Pattern' to the astroid.nodes's API --- tests/unittest_nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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 -- cgit v1.2.1