mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
asyncio, Tulip issue 172: only log selector timing in debug mode
This commit is contained in:
parent
c082ee692b
commit
1580fe3fce
2 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue