diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2014-07-10 20:32:58 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2014-07-10 20:32:58 (GMT) |
| commit | f68bd88aa61ae6214d3dc5552a7e3f9cf1401507 (patch) | |
| tree | b976d878139b73d846ea1498aa867589a7f51b13 /Lib/test/test_asyncio/test_futures.py | |
| parent | eb43214427b1ae6d7095bdd2333e9bc2220f9449 (diff) | |
| download | cpython-f68bd88aa61ae6214d3dc5552a7e3f9cf1401507.zip cpython-f68bd88aa61ae6214d3dc5552a7e3f9cf1401507.tar.gz cpython-f68bd88aa61ae6214d3dc5552a7e3f9cf1401507.tar.bz2 | |
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.
Diffstat (limited to 'Lib/test/test_asyncio/test_futures.py')
| -rw-r--r-- | Lib/test/test_asyncio/test_futures.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_futures.py b/Lib/test/test_asyncio/test_futures.py index 157adb7..50e9414 100644 --- a/Lib/test/test_asyncio/test_futures.py +++ b/Lib/test/test_asyncio/test_futures.py @@ -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(): |
