Merge "Fix compat with Python >= 3.6"

This commit is contained in:
Zuul 2018-08-18 03:20:48 +00:00 committed by Gerrit Code Review
commit 6b49fc1fab

View File

@ -61,6 +61,7 @@ class KeepalivedLvsTestCase(base.TestCase):
m_check_output, mget_pid, m_check_output, mget_pid,
m_init_sys): m_init_sys):
m_exist.return_value = True m_exist.return_value = True
mget_pid.return_value = '0'
self.assertRaises( self.assertRaises(
util.UnknownInitError, self.test_keepalivedlvs.delete_udp_listener, util.UnknownInitError, self.test_keepalivedlvs.delete_udp_listener,
self.FAKE_ID) self.FAKE_ID)