summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_unix_events.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@dropbox.com>2013-10-22 03:37:14 (GMT)
committerGuido van Rossum <guido@dropbox.com>2013-10-22 03:37:14 (GMT)
commit934f6ea7fb07e7a2cefefcc4e200e84aa7d5a5e0 (patch)
treeed85da52cc67d0d435b23fd2a813d139ec8008d8 /Lib/test/test_asyncio/test_unix_events.py
parent8a0fe85fbedf003ab113fdeed1c3d8f21e49a324 (diff)
downloadcpython-934f6ea7fb07e7a2cefefcc4e200e84aa7d5a5e0.zip
cpython-934f6ea7fb07e7a2cefefcc4e200e84aa7d5a5e0.tar.gz
cpython-934f6ea7fb07e7a2cefefcc4e200e84aa7d5a5e0.tar.bz2
Switch subprocess stdin to a socketpair, attempting to fix issue #19293 (AIX hang).
Diffstat (limited to 'Lib/test/test_asyncio/test_unix_events.py')
-rw-r--r--Lib/test/test_asyncio/test_unix_events.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py
index 27e70c6..f29e7af 100644
--- a/Lib/test/test_asyncio/test_unix_events.py
+++ b/Lib/test/test_asyncio/test_unix_events.py
@@ -312,6 +312,13 @@ class UnixReadPipeTransportTests(unittest.TestCase):
fcntl_patcher.start()
self.addCleanup(fcntl_patcher.stop)
+ fstat_patcher = unittest.mock.patch('os.fstat')
+ m_fstat = fstat_patcher.start()
+ st = unittest.mock.Mock()
+ st.st_mode = stat.S_IFIFO
+ m_fstat.return_value = st
+ self.addCleanup(fstat_patcher.stop)
+
def test_ctor(self):
tr = unix_events._UnixReadPipeTransport(
self.loop, self.pipe, self.protocol)