summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_unix_events.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2014-02-19 03:56:15 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2014-02-19 03:56:15 (GMT)
commitb41a42e316b09f6abef4cc5dc1fb88ce20b8c306 (patch)
treeba0ed93255205863fb8250613bda5454fc8b4641 /Lib/test/test_asyncio/test_unix_events.py
parentb0b0e628ee453126efb16805588ef60e2601fd08 (diff)
downloadcpython-b41a42e316b09f6abef4cc5dc1fb88ce20b8c306.zip
cpython-b41a42e316b09f6abef4cc5dc1fb88ce20b8c306.tar.gz
cpython-b41a42e316b09f6abef4cc5dc1fb88ce20b8c306.tar.bz2
asyncio: pep8-ify the code.
Diffstat (limited to 'Lib/test/test_asyncio/test_unix_events.py')
-rw-r--r--Lib/test/test_asyncio/test_unix_events.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py
index c0f205e..9e489c2 100644
--- a/Lib/test/test_asyncio/test_unix_events.py
+++ b/Lib/test/test_asyncio/test_unix_events.py
@@ -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)