BIND 10 #573: termination of msgq_test.py fails
BIND 10 Development
do-not-reply at isc.org
Mon Feb 14 12:40:59 UTC 2011
#573: termination of msgq_test.py fails
----------------------------------+----------------------------------------
Reporter: naokikambe | Owner: naokikambe
Type: defect | Status: new
Priority: major | Milestone:
Component: msgq | Keywords:
Sensitive: 0 | Estimated Number of Hours: 0
Add Hours to Ticket: 0 | Billable?: 1
Total Hours: 0 | Internal?: 0
----------------------------------+----------------------------------------
In python3 coverage which version is 3.3.1, the termination of msgq
test(msgq_test.py) fails. Details of "make check" result are here
[[attachment:msgq-fails.out]]. To avoid this, we need to add an argument
of explicit exit code 0 to "sys.exit" function in "msgq_test.py".
{{{
diff --git a/src/bin/msgq/tests/msgq_test.py
b/src/bin/msgq/tests/msgq_test.py
index efae151..59fcf41 100644
--- a/src/bin/msgq/tests/msgq_test.py
+++ b/src/bin/msgq/tests/msgq_test.py
@@ -132,7 +132,7 @@ class SendNonblock(unittest.TestCase):
task()
# If we got here, then everything worked well and in time
# In that case, we terminate successfully
- sys.exit()
+ sys.exit(0) # needs exit code
else:
(pid, status) = os.waitpid(task_pid, 0)
self.assertEqual(0, status,
}}}
--
Ticket URL: <http://bind10.isc.org/ticket/573>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list