use once rather than always for filterwarnings
The previous update to the WarningsFixture in [1] didn't account for the use of "once" vs "always" for the filterwarnings call. This patch switches over to "once" for parity with neutron. [1] https://review.opendev.org/#/c/651372/ Change-Id: Id1bdd97634be0de52b3ad0697740cc1621c9682a
This commit is contained in:
parent
978489953b
commit
c220374779
|
@ -410,4 +410,4 @@ class WarningsFixture(fixtures.Fixture):
|
||||||
self.addCleanup(warnings.resetwarnings)
|
self.addCleanup(warnings.resetwarnings)
|
||||||
for wtype in self.warning_types:
|
for wtype in self.warning_types:
|
||||||
warnings.filterwarnings(
|
warnings.filterwarnings(
|
||||||
"always", category=wtype, module='|'.join(self._modules))
|
"once", category=wtype, module='|'.join(self._modules))
|
||||||
|
|
Loading…
Reference in New Issue