capabilities: Exclude a line from code coverage

updated test suite capabilities XML doesn't hit this line anymore.
Just exclude it

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2024-09-10 13:13:46 -04:00
parent e1468c04aa
commit 9813dc3b4f

View File

@ -128,7 +128,7 @@ class _CapsGuest(XMLBuilder):
for m in mobjs:
ret.append(m.name)
if m.canonical and m.canonical not in ret:
ret.append(m.canonical)
ret.append(m.canonical) # pragma: no cover
return ret
def is_machine_alias(self, domain, src, tgt):