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

This commit is contained in:
Guido van Rossum 2013-11-25 09:43:52 -08:00
parent 23ed7e3d12
commit 14c3e14053
1 changed files with 1 additions and 1 deletions

View File

@ -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)