summaryrefslogtreecommitdiff
path: root/Lib/test/test_multiprocessing.py
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2012-05-05 20:41:08 +0100
committerRichard Oudkerk <shibturn@gmail.com>2012-05-05 20:41:08 +0100
commit9a16fa69dda64ed01b2239a732c0445f22babb57 (patch)
tree0bfcf7340ac53202c1db567ec9ee9120864329b6 /Lib/test/test_multiprocessing.py
parentc642f67c637b8a31d2e7781cb7b737b14937f711 (diff)
downloadcpython-git-9a16fa69dda64ed01b2239a732c0445f22babb57.tar.gz
Fix for issue 14725 for 2.7 branch
Diffstat (limited to 'Lib/test/test_multiprocessing.py')
-rw-r--r--Lib/test/test_multiprocessing.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
index eeb768f7d7..0fe649799a 100644
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -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
#