]> granicus.if.org Git - python/commitdiff
asyncio: Change mock pipe to mock socket. Hope to fix issue 19750.
authorGuido van Rossum <guido@python.org>
Mon, 25 Nov 2013 17:43:52 +0000 (09:43 -0800)
committerGuido van Rossum <guido@python.org>
Mon, 25 Nov 2013 17:43:52 +0000 (09:43 -0800)
Lib/test/test_asyncio/test_unix_events.py

index fdd904955d5c53026611a45326805dff0f37d82c..98cf407959def353fda527330f6a19c13206916c 100644 (file)
@@ -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)