summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_locks.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-25 21:11:21 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-25 21:11:21 (GMT)
commit87f16f892c4a5e96b9e9db3953b1cfc3db51b8f6 (patch)
treea49014c71bf8383f565e44116159c5a123125b4a /Lib/test/test_asyncio/test_locks.py
parent36820b6e084658423a038c77d6f61cc44fc7654a (diff)
downloadcpython-87f16f892c4a5e96b9e9db3953b1cfc3db51b8f6.zip
cpython-87f16f892c4a5e96b9e9db3953b1cfc3db51b8f6.tar.gz
cpython-87f16f892c4a5e96b9e9db3953b1cfc3db51b8f6.tar.bz2
Issue #21163, asyncio: Fix some "Task was destroyed but it is pending!" logs in tests
Diffstat (limited to 'Lib/test/test_asyncio/test_locks.py')
-rw-r--r--Lib/test/test_asyncio/test_locks.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_locks.py b/Lib/test/test_asyncio/test_locks.py
index 9d50a71..8ad1486 100644
--- a/Lib/test/test_asyncio/test_locks.py
+++ b/Lib/test/test_asyncio/test_locks.py
@@ -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)