summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_multiprocessing.py
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2012-06-14 14:30:10 (GMT)
committerRichard Oudkerk <shibturn@gmail.com>2012-06-14 14:30:10 (GMT)
commit73d9a292aeed5aa3414c911c1f34afeea17f0dda (patch)
tree6030ad6f193aa59ce6a06006b020dbe1e85deda6 /Lib/test/test_multiprocessing.py
parentbc07cb883e5c03b8c108c2c9d86bc0a158d62c27 (diff)
downloadcpython-73d9a292aeed5aa3414c911c1f34afeea17f0dda.zip
cpython-73d9a292aeed5aa3414c911c1f34afeea17f0dda.tar.gz
cpython-73d9a292aeed5aa3414c911c1f34afeea17f0dda.tar.bz2
Issue #13841: Make child processes exit using sys.exit() on Windows
Diffstat (limited to 'Lib/test/test_multiprocessing.py')
-rw-r--r--Lib/test/test_multiprocessing.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
index 65e7b0b..e4ad904 100644
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -1564,6 +1564,11 @@ class _TestMyManager(BaseTestCase):
manager.shutdown()
+ # If the manager process exited cleanly then the exitcode
+ # will be zero. Otherwise (after a short timeout)
+ # terminate() is used, resulting in an exitcode of -SIGTERM.
+ self.assertEqual(manager._process.exitcode, 0)
+
#
# Test of connecting to a remote server and using xmlrpclib for serialization
#