We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc16f6f commit 9c7940cCopy full SHA for 9c7940c
Lib/test/test_capi/test_opt.py
@@ -4900,7 +4900,7 @@ def test_load_attr_property_frame_invalidates_on_code_change(self):
4900
class C:
4901
@property
4902
def val(self):
4903
- return 1
+ return int(1)
4904
4905
fget = C.val.fget
4906
@@ -4917,6 +4917,8 @@ def testfunc(*args):
4917
self.assertIsNotNone(ex)
4918
uops = get_opnames(ex)
4919
self.assertIn("_LOAD_ATTR_PROPERTY_FRAME", uops)
4920
+ # Check the optimizer traced through the property call.
4921
+ self.assertIn("_CALL_BUILTIN_CLASS", uops)
4922
4923
fget.__code__ = (lambda self: 2).__code__
4924
_testinternalcapi.clear_executor_deletion_list()
0 commit comments