mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
Fix for issue 14725 for 2.7 branch
This commit is contained in:
parent
c642f67c63
commit
9a16fa69dd
3 changed files with 22 additions and 1 deletions
|
@ -1669,6 +1669,23 @@ class _TestListenerClient(BaseTestCase):
|
|||
self.assertEqual(conn.recv(), 'hello')
|
||||
p.join()
|
||||
l.close()
|
||||
|
||||
def test_issue14725(self):
|
||||
l = self.connection.Listener()
|
||||
p = self.Process(target=self._test, args=(l.address,))
|
||||
p.daemon = True
|
||||
p.start()
|
||||
time.sleep(1)
|
||||
# On Windows the client process should by now have connected,
|
||||
# written data and closed the pipe handle by now. This causes
|
||||
# ConnectNamdedPipe() to fail with ERROR_NO_DATA. See Issue
|
||||
# 14725.
|
||||
conn = l.accept()
|
||||
self.assertEqual(conn.recv(), 'hello')
|
||||
conn.close()
|
||||
p.join()
|
||||
l.close()
|
||||
|
||||
#
|
||||
# Test of sending connection and socket objects between processes
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue