Switch subprocess stdin to a socketpair, attempting to fix issue #19293 (AIX hang).

This commit is contained in:
Guido van Rossum 2013-10-21 20:37:14 -07:00
parent 8a0fe85fbe
commit 934f6ea7fb
2 changed files with 32 additions and 4 deletions

View file

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