mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Switch subprocess stdin to a socketpair, attempting to fix issue #19293 (AIX hang).
This commit is contained in:
parent
8a0fe85fbe
commit
934f6ea7fb
2 changed files with 32 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue