diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2012-05-05 18:45:37 (GMT) |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2012-05-05 18:45:37 (GMT) |
commit | fdb8dcf675427dc1ed710c8e1165cc6f87655a2c (patch) | |
tree | 1aefe1f3d944170e7e1d71a2b8cf22e013ecd1cd /Lib/test/test_multiprocessing.py | |
parent | 7a919e993052deec2826d6ba823156c805b1a9d9 (diff) | |
download | cpython-fdb8dcf675427dc1ed710c8e1165cc6f87655a2c.zip cpython-fdb8dcf675427dc1ed710c8e1165cc6f87655a2c.tar.gz cpython-fdb8dcf675427dc1ed710c8e1165cc6f87655a2c.tar.bz2 |
Fix for Issue 14725 for 3.3 branch.
Diffstat (limited to 'Lib/test/test_multiprocessing.py')
-rw-r--r-- | Lib/test/test_multiprocessing.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index 4aa0ba8..5e471f1 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -1878,6 +1878,22 @@ class _TestListenerClient(BaseTestCase): 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() + class _TestPoll(unittest.TestCase): ALLOWED_TYPES = ('processes', 'threads') |