diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2012-05-05 19:41:23 (GMT) |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2012-05-05 19:41:23 (GMT) |
commit | 7ef909cdd7af66d63eedf68519eed146fdf5de39 (patch) | |
tree | d849f835741eae51acd1140c2df9c4e0caea0e43 /Lib/test | |
parent | 16f6f8338b649345ff6de7c49b1d691102ef3b22 (diff) | |
download | cpython-7ef909cdd7af66d63eedf68519eed146fdf5de39.zip cpython-7ef909cdd7af66d63eedf68519eed146fdf5de39.tar.gz cpython-7ef909cdd7af66d63eedf68519eed146fdf5de39.tar.bz2 |
Fix for issue 14725 for 3.2 branch
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_multiprocessing.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index 298faf7..5f1bba3 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -1732,6 +1732,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 # |