summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2013-11-25 17:43:52 (GMT)
committerGuido van Rossum <guido@python.org>2013-11-25 17:43:52 (GMT)
commit14c3e1405350b0ba761877d719edcac6d1f696a5 (patch)
tree896ac8ae41cf94102e8ead32330f2e09521fdab2 /Lib
parent23ed7e3d128d584854146e09ff4c77135deeee67 (diff)
downloadcpython-14c3e1405350b0ba761877d719edcac6d1f696a5.zip
cpython-14c3e1405350b0ba761877d719edcac6d1f696a5.tar.gz
cpython-14c3e1405350b0ba761877d719edcac6d1f696a5.tar.bz2
asyncio: Change mock pipe to mock socket. Hope to fix issue 19750.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_asyncio/test_unix_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py
index fdd9049..98cf407 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)