From 524bfb84f5119315af56556cc9911f92c538b5b0 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 2 May 2012 13:44:20 -0400 Subject: Update common.importutils from openstack-common. This patch updates common.importutils from openstack-common. The change was to remove the usage of common.exception. The rest of the patch includes the changes required in nova to no longer use common.exception, as well. Change-Id: Iacd186b2c466cba84248ae10589ffbb5a9cec0ba --- nova/tests/scheduler/test_host_filters.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nova/tests') diff --git a/nova/tests/scheduler/test_host_filters.py b/nova/tests/scheduler/test_host_filters.py index 1d61d0fe9..d37ce1c02 100644 --- a/nova/tests/scheduler/test_host_filters.py +++ b/nova/tests/scheduler/test_host_filters.py @@ -20,7 +20,6 @@ import json from nova import context from nova import exception from nova import flags -from nova.openstack.common import exception as common_exception from nova.scheduler import filters from nova import test from nova.tests.scheduler import fakes @@ -65,7 +64,7 @@ class HostFiltersTestCase(test.TestCase): self.assertEqual(len(classes), 1 + len(self.class_map)) def test_get_filter_classes_raises_on_invalid_classes(self): - self.assertRaises(common_exception.NotFound, + self.assertRaises(ImportError, filters.get_filter_classes, ['nova.tests.scheduler.test_host_filters.NoExist']) self.assertRaises(exception.ClassNotFound, -- cgit