mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
asyncio: pep8-ify the code.
This commit is contained in:
parent
b0b0e628ee
commit
b41a42e316
5 changed files with 26 additions and 12 deletions
|
@ -367,7 +367,8 @@ class UnixReadPipeTransportTests(unittest.TestCase):
|
|||
tr._close.assert_called_with(err)
|
||||
m_logexc.assert_called_with(
|
||||
test_utils.MockPattern(
|
||||
'Fatal read error on pipe transport\nprotocol:.*\ntransport:.*'),
|
||||
'Fatal read error on pipe transport'
|
||||
'\nprotocol:.*\ntransport:.*'),
|
||||
exc_info=(OSError, MOCK_ANY, MOCK_ANY))
|
||||
|
||||
@unittest.mock.patch('os.read')
|
||||
|
@ -664,7 +665,8 @@ class UnixWritePipeTransportTests(unittest.TestCase):
|
|||
self.assertTrue(tr._closing)
|
||||
m_logexc.assert_called_with(
|
||||
test_utils.MockPattern(
|
||||
'Fatal write error on pipe transport\nprotocol:.*\ntransport:.*'),
|
||||
'Fatal write error on pipe transport'
|
||||
'\nprotocol:.*\ntransport:.*'),
|
||||
exc_info=(OSError, MOCK_ANY, MOCK_ANY))
|
||||
self.assertEqual(1, tr._conn_lost)
|
||||
test_utils.run_briefly(self.loop)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue