Use built-in print() instead of print statement
In python 3 print statement is not supported, so we should use only print() functions. This patch also removes print in unit test, left by accident Fixes bug 1226943 Change-Id: I5ace50cb9e149682344b4c986ef9318f8dc50f72
This commit is contained in:
@@ -172,9 +172,6 @@ class TestNecAgent(TestNecAgentBase):
|
||||
self._check_report_state([dummy_vif] * 5, 5, fail_mode)
|
||||
self._check_report_state([], 0, fail_mode)
|
||||
|
||||
print 'record_state', self.record_calls
|
||||
print 'num_ports_hist', self.num_ports_hist
|
||||
|
||||
# Since loopingcall start is mocked, call_count is same as
|
||||
# the call count of check_report_state.
|
||||
self.assertEqual(state_rpc.report_state.call_count, 4)
|
||||
|
||||
@@ -427,7 +427,6 @@ class PFCIdConvertTest(base.BaseTestCase):
|
||||
|
||||
def test_convert_tenant_id(self):
|
||||
ofc_t_id = self.generate_random_ids(1)
|
||||
print ofc_t_id
|
||||
ret = self.driver.convert_ofc_tenant_id(self.ctx, ofc_t_id)
|
||||
self.assertEqual(ret, '/tenants/%s' % ofc_t_id)
|
||||
|
||||
|
||||
@@ -241,7 +241,6 @@ class TremaFilterDriverTest(TremaDriverTestBase):
|
||||
'status': "ACTIVE"}
|
||||
if filter_dict:
|
||||
f.update(filter_dict)
|
||||
print 'filter=%s' % f
|
||||
|
||||
net_path = "/networks/%s" % n
|
||||
|
||||
@@ -462,8 +461,7 @@ class TremaIdConvertTestBase(base.BaseTestCase):
|
||||
|
||||
ret = self.driver.convert_ofc_port_id(self.ctx, ofc_p_id, t_id, n_id)
|
||||
exp = port_path_template % {'network': ofc_n_id, 'port': ofc_p_id}
|
||||
print 'exp=', exp
|
||||
print 'ret=', ret
|
||||
|
||||
self.assertEqual(ret, exp)
|
||||
self.mox.VerifyAll()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user