Skip to content
Snippets Groups Projects
Commit 54f71f51 authored by Claudiu Popa's avatar Claudiu Popa
Browse files

No extract_node directly into astroid.

parent 6d4fa3fa
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -69,7 +69,7 @@ def possible_exc_types(node):
 
if handler and handler.type:
excs = astroid.unpack_infer(handler.type)
excs = (exc.name for exc in excs if exc is not astroid.Uninferable)
excs = (exc.name for exc in excs if exc is not astroid.YES)
 
excs = set(exc for exc in excs if not node_ignores_exception(node, exc))
return excs
Loading
Loading
Loading
Loading
@@ -126,7 +126,7 @@ class PossibleExcTypesText(unittest.TestCase):
self.assertEqual(found, expected)
 
def test_ignores_uninferable_type(self):
raise_node = astroid.extract_node('''
raise_node = test_utils.extract_node('''
import not_a_module
def my_func():
try:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment