[Python-checkins] cpython (3.4): asyncio: test_as_completed(): disable "slow callback" warning
victor.stinner
python-checkins at python.org
Wed Jul 16 18:56:23 CEST 2014
http://hg.python.org/cpython/rev/f89d0ffd67ab
changeset: 91698:f89d0ffd67ab
branch: 3.4
parent: 91696:e4fe6706b7b4
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Jul 16 18:54:13 2014 +0200
summary:
asyncio: test_as_completed(): disable "slow callback" warning
files:
Lib/test/test_asyncio/test_tasks.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -851,6 +851,8 @@
yield 0
loop = self.new_test_loop(gen)
+ # disable "slow callback" warning
+ loop.slow_callback_duration = 1.0
completed = set()
time_shifted = False
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list