Browse Source

add mock libvirtaio module + pylint fixes

Wojtek Porczyk 7 years ago
parent
commit
3bc4ec1e98
2 changed files with 9 additions and 2 deletions
  1. 0 2
      qubes/vm/qubesvm.py
  2. 9 0
      test-packages/libvirtaio.py

+ 0 - 2
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
 

+ 9 - 0
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