From 14c3e1405350b0ba761877d719edcac6d1f696a5 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 25 Nov 2013 09:43:52 -0800 Subject: [PATCH] asyncio: Change mock pipe to mock socket. Hope to fix issue 19750. --- Lib/test/test_asyncio/test_unix_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py index fdd904955d..98cf407959 100644 --- a/Lib/test/test_asyncio/test_unix_events.py +++ b/Lib/test/test_asyncio/test_unix_events.py @@ -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) -- 2.40.0