summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhippo91 <guillaume.peillex@gmail.com>2019-12-30 13:44:30 +0100
committerhippo91 <guillaume.peillex@gmail.com>2019-12-30 13:44:30 +0100
commitbe78cd4a531aeb66f2c2292fb717f8c5db6e2a47 (patch)
tree80998d2559bcb12ad0acd68a8782e3ebe2595a55
parentcc3bfc5dc94062a582b7b3226598f09d7ec7044e (diff)
downloadastroid-git-be78cd4a531aeb66f2c2292fb717f8c5db6e2a47.tar.gz
Updates two tests that deal with the number of visits and the context.path
-rw-r--r--tests/unittest_inference.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unittest_inference.py b/tests/unittest_inference.py
index a5ed96b1..b541eb28 100644
--- a/tests/unittest_inference.py
+++ b/tests/unittest_inference.py
@@ -1313,7 +1313,7 @@ class InferenceTest(resources.SysPathSetup, unittest.TestCase):
result = node.inferred()
assert len(result) == 2
assert isinstance(result[0], nodes.Dict)
- assert result[1] is util.Uninferable
+ assert isinstance(result[1], nodes.Dict)
def test_python25_no_relative_import(self):
ast = resources.build_file("data/package/absimport.py")
@@ -3666,7 +3666,8 @@ class InferenceTest(resources.SysPathSetup, unittest.TestCase):
flow = AttributeDict()
flow['app'] = AttributeDict()
flow['app']['config'] = AttributeDict()
- flow['app']['config']['doffing'] = AttributeDict() #@
+ flow['app']['config']['doffing'] = AttributeDict()
+ flow['app']['config']['doffing']['thinkto'] = AttributeDict() #@
"""
)
self.assertIsNone(helpers.safe_infer(ast_node.targets[0]))