Skip to content

Commit e8617b4

Browse files
committed
move test methods back to BaseTestTaskGroup (caused by bad merge)
1 parent 1ce0b40 commit e8617b4

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Lib/test/test_asyncio/test_taskgroups.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,17 +1102,6 @@ async def throw_error():
11021102
# cancellation happens here and error is more understandable
11031103
await asyncio.sleep(0)
11041104

1105-
1106-
class TestTaskGroup(BaseTestTaskGroup, unittest.IsolatedAsyncioTestCase):
1107-
loop_factory = asyncio.EventLoop
1108-
1109-
class TestEagerTaskTaskGroup(BaseTestTaskGroup, unittest.IsolatedAsyncioTestCase):
1110-
@staticmethod
1111-
def loop_factory():
1112-
loop = asyncio.EventLoop()
1113-
loop.set_task_factory(asyncio.eager_task_factory)
1114-
return loop
1115-
11161105
async def test_taskgroup_cancel_children(self):
11171106
# (asserting that TimeoutError is not raised)
11181107
async with asyncio.timeout(1):
@@ -1202,5 +1191,16 @@ async def test_taskgroup_body_cancel_after_exception(self):
12021191
tg.cancel()
12031192

12041193

1194+
class TestTaskGroup(BaseTestTaskGroup, unittest.IsolatedAsyncioTestCase):
1195+
loop_factory = asyncio.EventLoop
1196+
1197+
class TestEagerTaskTaskGroup(BaseTestTaskGroup, unittest.IsolatedAsyncioTestCase):
1198+
@staticmethod
1199+
def loop_factory():
1200+
loop = asyncio.EventLoop()
1201+
loop.set_task_factory(asyncio.eager_task_factory)
1202+
return loop
1203+
1204+
12051205
if __name__ == "__main__":
12061206
unittest.main()

0 commit comments

Comments
 (0)