diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-13 16:10:43 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-13 16:10:43 -0400 |
commit | f11352c1144eff874d56620678a49b5a6b5d3771 (patch) | |
tree | be6513e6ba51cd90d6c8b1d90cb9e9841316b720 /Lib/test/test_asyncio/test_futures.py | |
parent | 5dc093336f6f6c7bd0b79c1c870dc9b733fc2fe5 (diff) | |
download | cpython-f11352c1144eff874d56620678a49b5a6b5d3771.tar.gz cpython-f11352c1144eff874d56620678a49b5a6b5d3771.zip |
asyncio/tests: Ensure a gc_collect for __del__ testing
Patch by Philip Jenvey
Diffstat (limited to 'Lib/test/test_asyncio/test_futures.py')
-rw-r--r-- | Lib/test/test_asyncio/test_futures.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_futures.py b/Lib/test/test_asyncio/test_futures.py index 358b1900723..e80010623b2 100644 --- a/Lib/test/test_asyncio/test_futures.py +++ b/Lib/test/test_asyncio/test_futures.py @@ -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') |