Commit 83717978 authored by Shane Kerr's avatar Shane Kerr
Browse files

Fix for msgq tests on Python 3.2

The behavior of the unittest module was changed in the face of a
test exiting, so we need to use os._exit() instead of sys.exit()
to terminate.
parent ac7ff7f2
......@@ -132,7 +132,7 @@ class SendNonblock(unittest.TestCase):
# If we got here, then everything worked well and in time
# In that case, we terminate successfully
sys.exit(0) # needs exit code
os._exit(0) # needs exit code
(pid, status) = os.waitpid(task_pid, 0)
self.assertEqual(0, status,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment