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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user