mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
asyncio: sync with Tulip
- Issues #21936, #21163: Fix sporadic failures of test_future_exception_never_retrieved() - Handle.cancel() now clears references to callback and args - In debug mode, repr(Handle) now contains the location where the Handle was created.
This commit is contained in:
parent
eb43214427
commit
f68bd88aa6
3 changed files with 74 additions and 16 deletions
|
@ -299,6 +299,12 @@ class FutureTests(test_utils.TestCase):
|
|||
|
||||
@mock.patch('asyncio.base_events.logger')
|
||||
def test_future_exception_never_retrieved(self, m_log):
|
||||
# FIXME: Python issue #21163, other tests may "leak" pending task which
|
||||
# emit a warning when they are destroyed by the GC
|
||||
support.gc_collect()
|
||||
m_log.error.reset_mock()
|
||||
# ---
|
||||
|
||||
self.loop.set_debug(True)
|
||||
|
||||
def memory_error():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue