diff options
| author | Russell Bryant <rbryant@redhat.com> | 2012-05-02 09:41:10 -0400 |
|---|---|---|
| committer | Russell Bryant <rbryant@redhat.com> | 2012-05-02 09:41:10 -0400 |
| commit | dc6ec67c5c06d411e06e03d393bac863399a67b6 (patch) | |
| tree | dee5734bbd80ed6724b758ec1a8a641bfd100a25 /tests/unit | |
| parent | c421e79d6b04f307e6dba3a9916fcf5e3c4630ff (diff) | |
Remove common.exception from common.importutils.
This patch removes the usage of common.exception from
common.importutils. Instead of raising exception.NotFound() from
importutils.import_class(), just use the built-in ImportError.
Change-Id: I95e84908d1f80c5ca3bbac049eda8faa64212ae0
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/test_importutils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unit/test_importutils.py b/tests/unit/test_importutils.py index 4cc12ab..e9b5b2e 100644 --- a/tests/unit/test_importutils.py +++ b/tests/unit/test_importutils.py @@ -19,7 +19,6 @@ import datetime import sys import unittest -from openstack.common import exception from openstack.common import importutils @@ -32,7 +31,7 @@ class ImportUtilsTest(unittest.TestCase): self.assertEqual(sys.modules['datetime'].datetime, dt) def test_import_bad_class(self): - self.assertRaises(exception.NotFound, importutils.import_class, + self.assertRaises(ImportError, importutils.import_class, 'lol.u_mad.brah') def test_import_module(self): |
