@@ -33,15 +33,13 @@ class TestTimeoutGuard(object):
33
33
def make_timeout_guard (self , timeout ):
34
34
return requests_aio .timeout_guard (timeout )
35
35
36
-
37
36
@pytest .mark .asyncio
38
37
async def test_timeout_with_single_async_task_within_bounds (self , simple_async_task ):
39
38
async with self .make_timeout_guard (timeout = 0.2 ) as with_timeout :
40
39
task = await with_timeout (simple_async_task )
41
40
42
41
# Task succeeds.
43
42
assert task is True
44
-
45
43
46
44
@pytest .mark .asyncio
47
45
async def test_timeout_with_single_async_task_out_of_bounds (self , simple_async_task ):
@@ -54,7 +52,6 @@ async def test_timeout_with_single_async_task_out_of_bounds(self, simple_async_t
54
52
assert task is True
55
53
assert exc .match ("Context manager exceeded the configured timeout of 0.1s." )
56
54
57
-
58
55
@pytest .mark .asyncio
59
56
async def test_timeout_with_multiple_async_tasks_within_bounds (self , simple_async_task , long_running_async_task ):
60
57
async with self .make_timeout_guard (timeout = 0.5 ) as with_timeout :
@@ -66,7 +63,6 @@ async def test_timeout_with_multiple_async_tasks_within_bounds(self, simple_asyn
66
63
assert task_1 is True
67
64
assert task_2 is True
68
65
69
-
70
66
@pytest .mark .asyncio
71
67
async def test_timeout_with_multiple_async_tasks_out_of_bounds (self , simple_async_task , long_running_async_task ):
72
68
@@ -82,8 +78,6 @@ async def test_timeout_with_multiple_async_tasks_out_of_bounds(self, simple_asyn
82
78
assert task_2 is True
83
79
assert exc .match ("Context manager exceeded the configured timeout of 0.4s." )
84
80
85
-
86
-
87
81
@pytest .mark .asyncio
88
82
async def test_timeout_with_async_task_timing_out_before_context (self , simple_async_task ):
89
83
0 commit comments