mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
asyncio/tests: Ensure a gc_collect for __del__ testing
Patch by Philip Jenvey
This commit is contained in:
parent
5dc093336f
commit
f11352c114
2 changed files with 2 additions and 0 deletions
|
@ -242,6 +242,7 @@ class FutureTests(test_utils.TestCase):
|
|||
fut.set_exception(RuntimeError('boom'))
|
||||
del fut
|
||||
test_utils.run_briefly(self.loop)
|
||||
support.gc_collect()
|
||||
self.assertTrue(m_log.error.called)
|
||||
|
||||
@mock.patch('asyncio.base_events.logger')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue