File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -1096,24 +1096,6 @@ async def inner():
1096
1096
with self .assertRaises (FooException ):
1097
1097
loop .run_until_complete (foo ())
1098
1098
1099
- def test_wait_for_raises_timeout_error_if_returned_during_cancellation (self ):
1100
- loop = asyncio .new_event_loop ()
1101
- self .addCleanup (loop .close )
1102
-
1103
- async def foo ():
1104
- async def inner ():
1105
- try :
1106
- await asyncio .sleep (0.2 )
1107
- except asyncio .CancelledError :
1108
- return 42
1109
-
1110
- inner_task = self .new_task (loop , inner ())
1111
-
1112
- await asyncio .wait_for (inner_task , timeout = _EPSILON )
1113
-
1114
- with self .assertRaises (asyncio .TimeoutError ):
1115
- loop .run_until_complete (foo ())
1116
-
1117
1099
def test_wait_for_self_cancellation (self ):
1118
1100
loop = asyncio .new_event_loop ()
1119
1101
self .addCleanup (loop .close )
You can’t perform that action at this time.
0 commit comments