1
0
forked from VimPlug/jedi

If branch inference should not trigger for things we don't know, fixes #1530

This commit is contained in:
Dave Halter
2020-03-31 22:46:17 +02:00
parent 604029568c
commit ac33d5dea3
4 changed files with 19 additions and 3 deletions

View File

@@ -174,10 +174,11 @@ def test_qualified_names(same_process_inference_state, obj, expected_names):
def test_operation(Script, inference_state, create_compiled_object):
b = create_compiled_object(bool)
true, = _infer_comparison_part(
false, true = _infer_comparison_part(
inference_state, b.parent_context,
left=list(b.execute_with_values())[0],
operator=u'is not',
right=b,
)
assert false.py__name__() == 'bool'
assert true.py__name__() == 'bool'