We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6247a57 commit ddfbeb2Copy full SHA for ddfbeb2
1 file changed
Lib/test/test_asyncio/test_taskgroups.py
@@ -1081,19 +1081,6 @@ async def throw_error():
1081
# cancellation happens here and error is more understandable
1082
await asyncio.sleep(0)
1083
1084
- @unittest.expectedFailure
1085
- async def test_name(self):
1086
- name = None
1087
-
1088
- async def asyncfn():
1089
- nonlocal name
1090
- name = asyncio.current_task().get_name()
1091
1092
- async with asyncio.TaskGroup() as tg:
1093
- tg.create_task(asyncfn(), name="example name")
1094
1095
- self.assertEqual(name, "example name")
1096
1097
1098
class TestTaskGroup(BaseTestTaskGroup, unittest.IsolatedAsyncioTestCase):
1099
loop_factory = asyncio.EventLoop
0 commit comments