diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-08-25 19:34:58 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-08-25 19:34:58 +0300 |
commit | ace151e38e3f11077af96ae4a606f17b24e353ce (patch) | |
tree | e0ce6c2964310a3dbf01e8e55b5a1a994c2bf5d6 /astroid/tests/unittest_scoped_nodes.py | |
parent | 90dac37948ba0e1b34b17a8281e702c9d89c48e9 (diff) | |
download | astroid-ace151e38e3f11077af96ae4a606f17b24e353ce.tar.gz |
Emit a warning when an old AST name is used in an isinstance call.
Diffstat (limited to 'astroid/tests/unittest_scoped_nodes.py')
-rw-r--r-- | astroid/tests/unittest_scoped_nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |