bpo-37035: Don't log OSError (GH-13548)

https://bugs.python.org/issue37035
This commit is contained in:
Andrew Svetlov 2019-05-27 16:28:34 +03:00 committed by Miss Islington (bot)
parent ff6b2e66b1
commit 1f39c28e48
8 changed files with 35 additions and 18 deletions

View file

@ -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)