diff options
| author | Soren Hansen <soren@linux2go.dk> | 2011-11-10 10:58:08 +0100 |
|---|---|---|
| committer | Soren Hansen <soren@linux2go.dk> | 2011-11-10 13:35:54 +0100 |
| commit | 41b4af111d4f80f51e79aeebc643ace60dee54f8 (patch) | |
| tree | 5a97ef1e21595d14eac7b3730e68d4405f3b205e /nova/tests | |
| parent | 6c0fd03fc3e4f30ca6d1e7d55e83d7a325fae447 (diff) | |
| download | nova-41b4af111d4f80f51e79aeebc643ace60dee54f8.tar.gz nova-41b4af111d4f80f51e79aeebc643ace60dee54f8.tar.xz nova-41b4af111d4f80f51e79aeebc643ace60dee54f8.zip | |
Replace libvirt driver's use of libxml2 with ElementTree
libxml2 has been rather awkward as a dependency, and ElementTree
is in the standard library, so this replaces all use of libxml2 with
ElementTree instead.
Change-Id: Ib99983d5b04cc9f899584bfd4335fa9f7ece3c40
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_libvirt.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py index d0ca361ad..72ba84d7f 100644 --- a/nova/tests/test_libvirt.py +++ b/nova/tests/test_libvirt.py @@ -51,13 +51,6 @@ except ImportError: libvirt = None -try: - import libxml2 - connection.libxml2 = libxml2 -except ImportError: - libxml2 = None - - FLAGS = flags.FLAGS LOG = logging.getLogger('nova.tests.test_libvirt') @@ -243,7 +236,7 @@ class FakeVolumeDriver(object): def missing_libvirt(): - return libvirt is None or libxml2 is None + return libvirt is None class LibvirtConnTestCase(test.TestCase): |
