[Python-checkins] cpython (merge 3.4 -> default): (Merge 3.4) asyncio: test_as_completed(): disable "slow callback" warning

victor.stinner python-checkins at python.org
Wed Jul 16 18:56:24 CEST 2014


http://hg.python.org/cpython/rev/4c39d69bf08f
changeset:   91699:4c39d69bf08f
parent:      91697:a627b23f57d4
parent:      91698:f89d0ffd67ab
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Jul 16 18:54:25 2014 +0200
summary:
  (Merge 3.4) 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