summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_base_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-22 22:31:08 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-22 22:31:08 (GMT)
commit1580fe3fcebcfe0b657281a6a556975c072a5530 (patch)
treef993f228b342073dc72dccdbf6f60285fd0579a1 /Lib/test/test_asyncio/test_base_events.py
parentc082ee692bc92232031b050d4c6aa2510c6ef55e (diff)
downloadcpython-1580fe3fcebcfe0b657281a6a556975c072a5530.zip
cpython-1580fe3fcebcfe0b657281a6a556975c072a5530.tar.gz
cpython-1580fe3fcebcfe0b657281a6a556975c072a5530.tar.bz2
asyncio, Tulip issue 172: only log selector timing in debug mode
Diffstat (limited to 'Lib/test/test_asyncio/test_base_events.py')
-rw-r--r--Lib/test/test_asyncio/test_base_events.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index b238f4e..9fa3e6d 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -247,6 +247,9 @@ class BaseEventLoopTests(test_utils.TestCase):
time.sleep(1.0)
return []
+ # logging needs debug flag
+ self.loop.set_debug(True)
+
# Log to INFO level if timeout > 1.0 sec.
self.loop._selector.select = slow_select
self.loop._process_events = mock.Mock()