Issue #21163, asyncio: Fix some "Task was destroyed but it is pending!" logs in tests

This commit is contained in:
Victor Stinner 2014-06-25 23:11:21 +02:00
parent 36820b6e08
commit 87f16f892c
3 changed files with 22 additions and 16 deletions

View file

@ -783,6 +783,7 @@ class SemaphoreTests(test_utils.TestCase):
# cleanup locked semaphore
sem.release()
self.loop.run_until_complete(t4)
def test_acquire_cancel(self):
sem = asyncio.Semaphore(loop=self.loop)