mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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
|
|
@ -135,7 +135,7 @@ class ProactorSocketTransportTests(unittest.TestCase):
|
|||
self.loop._proactor.send.return_value.add_done_callback.\
|
||||
assert_called_with(tr._loop_writing)
|
||||
|
||||
@unittest.mock.patch('asyncio.proactor_events.asyncio_log')
|
||||
@unittest.mock.patch('asyncio.proactor_events.logger')
|
||||
def test_loop_writing_err(self, m_log):
|
||||
err = self.loop._proactor.send.side_effect = OSError()
|
||||
tr = _ProactorSocketTransport(self.loop, self.sock, self.protocol)
|
||||
|
|
@ -207,7 +207,7 @@ class ProactorSocketTransportTests(unittest.TestCase):
|
|||
test_utils.run_briefly(self.loop)
|
||||
self.assertFalse(self.protocol.connection_lost.called)
|
||||
|
||||
@unittest.mock.patch('asyncio.proactor_events.asyncio_log')
|
||||
@unittest.mock.patch('asyncio.proactor_events.logger')
|
||||
def test_fatal_error(self, m_logging):
|
||||
tr = _ProactorSocketTransport(self.loop, self.sock, self.protocol)
|
||||
tr._force_close = unittest.mock.Mock()
|
||||
|
|
@ -432,7 +432,7 @@ class BaseProactorEventLoopTests(unittest.TestCase):
|
|||
def test_process_events(self):
|
||||
self.loop._process_events([])
|
||||
|
||||
@unittest.mock.patch('asyncio.proactor_events.asyncio_log')
|
||||
@unittest.mock.patch('asyncio.proactor_events.logger')
|
||||
def test_create_server(self, m_log):
|
||||
pf = unittest.mock.Mock()
|
||||
call_soon = self.loop.call_soon = unittest.mock.Mock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue