From ace151e38e3f11077af96ae4a606f17b24e353ce Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Tue, 25 Aug 2015 19:34:58 +0300 Subject: Emit a warning when an old AST name is used in an isinstance call. --- astroid/tests/unittest_scoped_nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'astroid/tests/unittest_scoped_nodes.py') diff --git a/astroid/tests/unittest_scoped_nodes.py b/astroid/tests/unittest_scoped_nodes.py index 19aea1e..d57cb1e 100644 --- a/astroid/tests/unittest_scoped_nodes.py +++ b/astroid/tests/unittest_scoped_nodes.py @@ -1406,7 +1406,7 @@ class ClassNodeTest(ModuleLoader, unittest.TestCase): self.assertEqual(property_class.value, 42) static = next(acls.igetattr('static')) - self.assertIsInstance(static, scoped_nodes.Function) + self.assertIsInstance(static, scoped_nodes.FunctionDef) @test_utils.require_version(maxver='3.0') def test_implicit_metaclass_is_none(self): -- cgit v1.2.1