From 3bc4ec1e98760da2c8026da3eac1f5eafe23e4a1 Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Wed, 5 Apr 2017 17:03:48 +0200 Subject: [PATCH] add mock libvirtaio module + pylint fixes --- qubes/vm/qubesvm.py | 2 -- test-packages/libvirtaio.py | 9 +++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 test-packages/libvirtaio.py diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index b9f42573..8365cd6b 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -32,8 +32,6 @@ import os.path import shutil import string import subprocess -import sys -import time import uuid import warnings diff --git a/test-packages/libvirtaio.py b/test-packages/libvirtaio.py new file mode 100644 index 00000000..96a2ba2a --- /dev/null +++ b/test-packages/libvirtaio.py @@ -0,0 +1,9 @@ +"""mock libvirtaio module + +WARNING: you did not import real libvirtaio module + +This is needed, because we don't currently ship libvirt-python for templates. +""" + +def virEventRegisterAsyncIOImpl(loop): + pass