mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-37035: Don't log OSError (GH-13548)
https://bugs.python.org/issue37035
This commit is contained in:
parent
ff6b2e66b1
commit
1f39c28e48
8 changed files with 35 additions and 18 deletions
|
@ -977,11 +977,7 @@ class UnixWritePipeTransportTests(test_utils.TestCase):
|
|||
self.assertFalse(self.loop.readers)
|
||||
self.assertEqual(bytearray(), tr._buffer)
|
||||
self.assertTrue(tr.is_closing())
|
||||
m_logexc.assert_called_with(
|
||||
test_utils.MockPattern(
|
||||
'Fatal write error on pipe transport'
|
||||
'\nprotocol:.*\ntransport:.*'),
|
||||
exc_info=(OSError, MOCK_ANY, MOCK_ANY))
|
||||
m_logexc.assert_not_called()
|
||||
self.assertEqual(1, tr._conn_lost)
|
||||
test_utils.run_briefly(self.loop)
|
||||
self.protocol.connection_lost.assert_called_with(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue