File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
12051205if __name__ == "__main__" :
12061206 unittest .main ()
You can’t perform that action at this time.
0 commit comments