diff --git a/nova/tests/unit/virt/xenapi/client/test_session.py b/nova/tests/unit/virt/xenapi/client/test_session.py index 10daef99fa38..6d575a06531c 100644 --- a/nova/tests/unit/virt/xenapi/client/test_session.py +++ b/nova/tests/unit/virt/xenapi/client/test_session.py @@ -22,6 +22,7 @@ from nova import exception from nova.tests.unit.virt.xenapi import stubs from nova import version from nova.virt.xenapi.client import session +from nova.virt.xenapi import fake as xenapi_fake class SessionTestCase(stubs.XenAPITestBaseNoDB): @@ -204,6 +205,7 @@ class CallPluginTestCase(stubs.XenAPITestBaseNoDB): def __init__(self, **kwargs): "Skip the superclass's dirty init" self.XenAPI = mock.MagicMock() + self.XenAPI.Failure = xenapi_fake.Failure return FakeXapiSession() diff --git a/tests-py3.txt b/tests-py3.txt index ab1d45f179e5..a80fba0d7557 100644 --- a/tests-py3.txt +++ b/tests-py3.txt @@ -24,7 +24,6 @@ nova.tests.unit.virt.libvirt.test_vif.LibvirtVifTestCase nova.tests.unit.virt.vmwareapi.test_images.VMwareImagesTestCase nova.tests.unit.virt.vmwareapi.test_read_write_util.ReadWriteUtilTestCase nova.tests.unit.virt.vmwareapi.test_vmops.VMwareVMOpsTestCase.test_spawn_mask_block_device_info_password -nova.tests.unit.virt.xenapi.client.test_session.CallPluginTestCase nova.tests.unit.virt.xenapi.test_vm_utils.ResizeFunctionTestCase nova.tests.unit.virt.xenapi.test_vm_utils.ScanSrTestCase nova.tests.unit.virt.xenapi.test_vm_utils.UnplugVbdTestCase