summaryrefslogtreecommitdiff
path: root/nova/tests/functional/libvirt/test_vtpm.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/tests/functional/libvirt/test_vtpm.py')
-rw-r--r--nova/tests/functional/libvirt/test_vtpm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/functional/libvirt/test_vtpm.py b/nova/tests/functional/libvirt/test_vtpm.py
index c07c38f02d..3b5ae9a60f 100644
--- a/nova/tests/functional/libvirt/test_vtpm.py
+++ b/nova/tests/functional/libvirt/test_vtpm.py
@@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-import mock
+from unittest import mock
from castellan.common.objects import passphrase
from castellan.key_manager import key_manager
@@ -128,7 +128,7 @@ class VTPMServersTest(base.ServersTestBase):
# the presence of users on the host, none of which makes sense here
_p = mock.patch(
'nova.virt.libvirt.driver.LibvirtDriver._check_vtpm_support')
- self.mock_conn = _p.start()
+ _p.start()
self.addCleanup(_p.stop)
self.key_mgr = crypto._get_key_manager()