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

This commit is contained in:
Julien Duponchelle
2015-11-02 16:34:34 +01:00
parent 82540e5366
commit 69c38c6414
5 changed files with 47 additions and 46 deletions

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: