summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhippo91 <guillaume.peillex@gmail.com>2021-02-17 11:58:28 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-21 19:15:02 +0100
commit83b317385a26d24d74f8bea4156cf441c835349d (patch)
tree5067efa802215bebb9dae4b3a720f598f1da6eab
parent03d15b0f32f7d7c9b2cb062b9321e531bd954344 (diff)
downloadastroid-git-83b317385a26d24d74f8bea4156cf441c835349d.tar.gz
Revert "Updates two tests that deal with the number of visits and the context.path"
This reverts commit be78cd4a531aeb66f2c2292fb717f8c5db6e2a47.
-rw-r--r--tests/unittest_inference.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unittest_inference.py b/tests/unittest_inference.py
index 9dedba65..c74b04b0 100644
--- a/tests/unittest_inference.py
+++ b/tests/unittest_inference.py
@@ -1300,7 +1300,7 @@ class InferenceTest(resources.SysPathSetup, unittest.TestCase):
result = node.inferred()
assert len(result) == 2
assert isinstance(result[0], nodes.Dict)
- assert isinstance(result[1], nodes.Dict)
+ assert result[1] is util.Uninferable
def test_python25_no_relative_import(self):
ast = resources.build_file("data/package/absimport.py")
@@ -3681,8 +3681,7 @@ class InferenceTest(resources.SysPathSetup, unittest.TestCase):
flow = AttributeDict()
flow['app'] = AttributeDict()
flow['app']['config'] = AttributeDict()
- flow['app']['config']['doffing'] = AttributeDict()
- flow['app']['config']['doffing']['thinkto'] = AttributeDict() #@
+ flow['app']['config']['doffing'] = AttributeDict() #@
"""
)
self.assertIsNone(helpers.safe_infer(ast_node.targets[0]))