mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Issue #21163, asyncio: Fix some "Task was destroyed but it is pending!" logs in tests
This commit is contained in:
parent
36820b6e08
commit
87f16f892c
3 changed files with 22 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue