Skip to content

Commit d8a67c2

Browse files
committed
Tag workarounds for not deferring nested functions on classes with gh issue
1 parent 4b0a850 commit d8a67c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Lib/test/test_monitoring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,8 +850,8 @@ def __init__(self, events):
850850
def __call__(self, code, offset, val):
851851
self.events.append(("return", code.co_name, val))
852852

853-
# CALL_ALLOC_AND_ENTER_INIT will only cache __init__ methods that are
854-
# deferred. We only defer functions defined at the top-level.
853+
# gh-127274: CALL_ALLOC_AND_ENTER_INIT will only cache __init__ methods that
854+
# are deferred. We only defer functions defined at the top-level.
855855
class ValueErrorRaiser:
856856
def __init__(self):
857857
raise ValueError()

Lib/test/test_opcache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,8 @@ def f():
493493
self.assertFalse(f())
494494

495495

496-
# CALL_ALLOC_AND_ENTER_INIT will only cache __init__ methods that are
497-
# deferred. We only defer functions defined at the top-level.
496+
# gh-127274: CALL_ALLOC_AND_ENTER_INIT will only cache __init__ methods that
497+
# are deferred. We only defer functions defined at the top-level.
498498
class MyClass:
499499
def __init__(self):
500500
pass

0 commit comments

Comments
 (0)