From aeffa4f7110ae3afe7f43a2ac871bebf1d9f6e14 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 27 Jul 2022 18:07:05 -0400 Subject: [PATCH] guest: Check coverage for more of domcaps caching Signed-off-by: Cole Robinson --- virtinst/guest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virtinst/guest.py b/virtinst/guest.py index 2d8edbe2a..5092e916b 100644 --- a/virtinst/guest.py +++ b/virtinst/guest.py @@ -627,7 +627,7 @@ class Guest(XMLBuilder): return False # We need to regenerate domcaps cache if any of these values change - def _compare(domcaps): # pragma: no cover + def _compare(domcaps): if self.type == "test": # Test driver doesn't support domcaps. We kinda fake it in # some cases, but it screws up the checking here for parsed XML @@ -637,7 +637,7 @@ class Guest(XMLBuilder): if self.type and self.type != domcaps.domain: return False if self.os.arch and self.os.arch != domcaps.arch: - return False + return False # pragma: no cover if self.emulator and self.emulator != domcaps.path: return False return True