Commit 056143a9 authored by Guido van Rossum's avatar Guido van Rossum

asyncio: Change mock pipe to mock socket. Hope to fix issue 19750.

parent 7b6c21d6
......@@ -379,7 +379,7 @@ class UnixWritePipeTransportTests(unittest.TestCase):
fstat_patcher = unittest.mock.patch('os.fstat')
m_fstat = fstat_patcher.start()
st = unittest.mock.Mock()
st.st_mode = stat.S_IFIFO
st.st_mode = stat.S_IFSOCK
m_fstat.return_value = st
self.addCleanup(fstat_patcher.stop)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment