Use pytest 2.8 so it's work with Python 3.5 without warning

This commit is contained in:
Julien Duponchelle committed 2015-11-02 16:35:12 +01:00
1 parent 82540e5366
commit 69c38c6414
5 files changed
+47 -46

No files matched your search

+2
View File
@@ -1426,6 +1426,8 @@ class QemuVM(BaseVM):
:returns: Boolean True if we need to enable KVM
"""
print(sys.platform.startswith("linux"))
print(self.manager.config.get_section_config("Qemu").getboolean("enable_kvm", True))
if sys.platform.startswith("linux") and self.manager.config.get_section_config("Qemu").getboolean("enable_kvm", True) \
and "-no-kvm" not in options: