From a4acd5ffaeb2579211ba0b3eaae5d79132974c48 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Sat, 11 Oct 2014 11:47:27 -0700 Subject: [PATCH] Don't translate unit test logs log lines in unit tests won't ever be run in production, no reason to translate them. Change-Id: I162d615edd16d8faeb335d99f0ed1b4248182372 --- nova/tests/compute/test_compute.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/nova/tests/compute/test_compute.py b/nova/tests/compute/test_compute.py index 97b9ee5792..a2c45df4ba 100644 --- a/nova/tests/compute/test_compute.py +++ b/nova/tests/compute/test_compute.py @@ -1828,14 +1828,14 @@ class ComputeTestCase(BaseTestCase): None, True, None, False) instances = db.instance_get_all(self.context) - LOG.info(_("Running instances: %s"), instances) + LOG.info("Running instances: %s", instances) self.assertEqual(len(instances), 1) self.compute.terminate_instance(self.context, self._objectify(instance), [], []) instances = db.instance_get_all(self.context) - LOG.info(_("After terminating instances: %s"), instances) + LOG.info("After terminating instances: %s", instances) self.assertEqual(len(instances), 0) admin_deleted_context = context.get_admin_context( @@ -1855,7 +1855,7 @@ class ComputeTestCase(BaseTestCase): None, True, None, False) instances = db.instance_get_all(self.context) - LOG.info(_("Running instances: %s"), instances) + LOG.info("Running instances: %s", instances) self.assertEqual(len(instances), 1) def fake_check_attach(*args, **kwargs): @@ -1905,7 +1905,7 @@ class ComputeTestCase(BaseTestCase): self._objectify(instance), bdms, []) instances = db.instance_get_all(self.context) - LOG.info(_("After terminating instances: %s"), instances) + LOG.info("After terminating instances: %s", instances) self.assertEqual(len(instances), 0) bdms = db.block_device_mapping_get_all_by_instance(self.context, instance['uuid']) @@ -1935,7 +1935,7 @@ class ComputeTestCase(BaseTestCase): None, True, None, False) instances = db.instance_get_all(self.context) - LOG.info(_("Running instances: %s"), instances) + LOG.info("Running instances: %s", instances) self.assertEqual(len(instances), 1) self.mox.ReplayAll() @@ -1943,7 +1943,7 @@ class ComputeTestCase(BaseTestCase): self._objectify(instance), [], []) instances = db.instance_get_all(self.context) - LOG.info(_("After terminating instances: %s"), instances) + LOG.info("After terminating instances: %s", instances) self.assertEqual(len(instances), 0) def test_run_terminate_timestamps(self): @@ -1975,7 +1975,7 @@ class ComputeTestCase(BaseTestCase): None, True, None, False) instances = db.instance_get_all(self.context) - LOG.info(_("Running instances: %s"), instances) + LOG.info("Running instances: %s", instances) self.assertEqual(len(instances), 1) def _fake_deallocate_network(*args, **kwargs): @@ -5830,7 +5830,7 @@ class ComputeTestCase(BaseTestCase): None, True, None, False) instances = db.instance_get_all(self.context) - LOG.info(_("Running instances: %s"), instances) + LOG.info("Running instances: %s", instances) self.assertEqual(len(instances), 1) instance_name = instances[0]['name'] @@ -5841,7 +5841,7 @@ class ComputeTestCase(BaseTestCase): self.compute._sync_power_states(ctxt) instances = db.instance_get_all(self.context) - LOG.info(_("After force-killing instances: %s"), instances) + LOG.info("After force-killing instances: %s", instances) self.assertEqual(len(instances), 1) self.assertIsNone(instances[0]['task_state'])