Skip to content

Commit f232660

Browse files
Fix test
1 parent 2bb499d commit f232660

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_inference.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4944,6 +4944,9 @@ def __class_getitem__(self, value):
49444944
"""
49454945
klass = extract_node(code)
49464946
context = InferenceContext()
4947+
# For this test, we want a fresh inference, rather than a cache hit on
4948+
# the inference done at brain time in _is_enum_subclass()
4949+
context.lookupname = "Fresh lookup!"
49474950
_ = klass.getitem(0, context=context)
49484951

49494952
assert next(iter(context.path))[0].name == "Parent"

0 commit comments

Comments
 (0)