Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3fcf4b

Browse files
committed
(Merge 3.4) asyncio: test_as_completed(): disable "slow callback" warning
2 parents f85581f + accef5c commit c3fcf4b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_asyncio/test_tasks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,8 @@ def gen():
851851
yield 0
852852

853853
loop = self.new_test_loop(gen)
854+
# disable "slow callback" warning
855+
loop.slow_callback_duration = 1.0
854856
completed = set()
855857
time_shifted = False
856858

0 commit comments

Comments
 (0)