asyncio: Change mock pipe to mock socket. Hope to fix issue 19750.
This commit is contained in:
parent
23ed7e3d12
commit
14c3e14053
|
@ -379,7 +379,7 @@ class UnixWritePipeTransportTests(unittest.TestCase):
|
||||||
fstat_patcher = unittest.mock.patch('os.fstat')
|
fstat_patcher = unittest.mock.patch('os.fstat')
|
||||||
m_fstat = fstat_patcher.start()
|
m_fstat = fstat_patcher.start()
|
||||||
st = unittest.mock.Mock()
|
st = unittest.mock.Mock()
|
||||||
st.st_mode = stat.S_IFIFO
|
st.st_mode = stat.S_IFSOCK
|
||||||
m_fstat.return_value = st
|
m_fstat.return_value = st
|
||||||
self.addCleanup(fstat_patcher.stop)
|
self.addCleanup(fstat_patcher.stop)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue