Skip to content
Merged
Prev Previous commit
Next Next commit
Rename some tests.
  • Loading branch information
serhiy-storchaka committed Dec 6, 2020
commit 90e78bfb322055eb501289f3a102b57e0590e8c0
6 changes: 3 additions & 3 deletions Lib/test/test_asyncio/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,7 @@ def runner():
self.assertEqual(set(result), {'ham', 'spam'})
self.assertEqual(len(result), 2)

def test_as_completed_nontask_without_loop(self):
def test_as_completed_coroutine_without_loop(self):
async def coro():
return 42

Expand All @@ -1760,7 +1760,7 @@ async def coro():
list(futs)
self.assertEqual(cm.warnings[0].filename, __file__)

def test_as_completed_nontask_use_running_loop(self):
def test_as_completed_coroutine_use_running_loop(self):
loop = self.new_test_loop()

async def coro():
Expand All @@ -1773,7 +1773,7 @@ async def test():

loop.run_until_complete(test())

def test_as_completed_nontask_use_global_loop(self):
def test_as_completed_coroutine_use_global_loop(self):
# Deprecated in 3.10
async def coro():
return 42
Expand Down