Skip to content

Commit 12bdf0e

Browse files
committed
Disable slow callback warning
1 parent f51fb3c commit 12bdf0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_asyncio/test_timeouts.py

+2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ async def test_nested_timeouts_loop_busy(self):
156156
# After the inner timeout is an expensive operation which should
157157
# be stopped by the outer timeout.
158158
loop = asyncio.get_running_loop()
159+
# Disable a message about long running task
160+
loop.slow_callback_duration = 10
159161
t0 = loop.time()
160162
with self.assertRaises(TimeoutError):
161163
async with asyncio.timeout(0.1): # (1)

0 commit comments

Comments
 (0)