cpython: 871d496fa06c (original) (raw)
Mercurial > cpython
changeset 87554:871d496fa06c
asyncio: Change mock pipe to mock socket. Hope to fix issue 19750. [#19750]
Guido van Rossum guido@python.org | |
---|---|
date | Mon, 25 Nov 2013 09:43:52 -0800 |
parents | 6ec6facb69ca |
children | 368b74823c76 |
files | Lib/test/test_asyncio/test_unix_events.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_asyncio/test_unix_events.py 2 |
line wrap: on
line diff
--- a/Lib/test/test_asyncio/test_unix_events.py +++ b/Lib/test/test_asyncio/test_unix_events.py @@ -379,7 +379,7 @@ class UnixWritePipeTransportTests(unitte fstat_patcher = unittest.mock.patch('os.fstat') m_fstat = fstat_patcher.start() st = unittest.mock.Mock()
st.st_mode = stat.S_IFIFO[](#l1.7)
st.st_mode = stat.S_IFSOCK[](#l1.8) m_fstat.return_value = st[](#l1.9) self.addCleanup(fstat_patcher.stop)[](#l1.10)