Skip to content

Commit 545f759

Browse files
comment
1 parent 4b048fa commit 545f759

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_asyncio/test_futures.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,10 @@ def test_future_del_segfault(self):
698698
del fut._log_traceback
699699

700700
def test_callbacks_copy(self):
701+
# See https://github.com/python/cpython/issues/125789
702+
# In C implementation, the `_callbacks` attribute
703+
# always returns a new list to avoid mutations of internal state
704+
701705
fut = self._new_future(loop=self.loop)
702706
f1 = lambda _: 1
703707
f2 = lambda _: 2

0 commit comments

Comments
 (0)