Ignore errant warning

I'm not really sure what's going on here, but this is valid code.

Change-Id: I3e60724a7cf0f86ba741792c6127c08f0130b62c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2026-03-06 15:44:42 +00:00
parent 89ee877201
commit 304c9a68d9

View File

@@ -38,7 +38,7 @@ class WarningsFixture(fixtures.Fixture):
super().setUp()
self._w = warnings.catch_warnings(record=True)
self.log = self._w.__enter__()
self.addCleanup(self._w.__exit__)
self.addCleanup(self._w.__exit__) # type: ignore
warnings.simplefilter(self.action, self.category)
def __len__(self):