mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Rename the logger to plain "logger".
This commit is contained in:
parent
b795aa8547
commit
fc29e0f37e
15 changed files with 61 additions and 60 deletions
|
@ -183,7 +183,7 @@ class BaseEventLoopTests(unittest.TestCase):
|
|||
self.assertTrue(self.loop._process_events.called)
|
||||
|
||||
@unittest.mock.patch('asyncio.base_events.time')
|
||||
@unittest.mock.patch('asyncio.base_events.asyncio_log')
|
||||
@unittest.mock.patch('asyncio.base_events.logger')
|
||||
def test__run_once_logging(self, m_logging, m_time):
|
||||
# Log to INFO level if timeout > 1.0 sec.
|
||||
idx = -1
|
||||
|
@ -579,7 +579,7 @@ class BaseEventLoopWithSelectorTests(unittest.TestCase):
|
|||
self.loop._accept_connection(MyProto, sock)
|
||||
self.assertFalse(sock.close.called)
|
||||
|
||||
@unittest.mock.patch('asyncio.selector_events.asyncio_log')
|
||||
@unittest.mock.patch('asyncio.selector_events.logger')
|
||||
def test_accept_connection_exception(self, m_log):
|
||||
sock = unittest.mock.Mock()
|
||||
sock.fileno.return_value = 10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue