From 41b4af111d4f80f51e79aeebc643ace60dee54f8 Mon Sep 17 00:00:00 2001 From: Soren Hansen Date: Thu, 10 Nov 2011 10:58:08 +0100 Subject: 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 --- nova/tests/test_libvirt.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'nova/tests') 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): -- cgit