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 bc55838 commit 00b9536Copy full SHA for 00b9536
Lib/test/test_asyncio/test_futures.py
@@ -832,6 +832,21 @@ def __eq__(self, other):
832
833
fut.remove_done_callback(evil())
834
835
+ def test_remove_done_callbacks_list_clear(self):
836
+ # see https://github.com/python/cpython/issues/97592 for details
837
+
838
+ fut = self._new_future()
839
+ fut.add_done_callback(str)
840
841
+ for _ in range(63):
842
+ fut.add_done_callback(id)
843
844
+ class evil:
845
+ def __eq__(self, other):
846
+ fut.remove_done_callback(other)
847
848
+ fut.remove_done_callback(evil())
849
850
def test_schedule_callbacks_list_mutation_1(self):
851
# see http://bugs.python.org/issue28963 for details
852
0 commit comments