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:
Boden R 2019-05-06 15:10:23 -06:00
parent 978489953b
commit c220374779
1 changed files with 1 additions and 1 deletions

View File

@ -410,4 +410,4 @@ class WarningsFixture(fixtures.Fixture):
self.addCleanup(warnings.resetwarnings)
for wtype in self.warning_types:
warnings.filterwarnings(
"always", category=wtype, module='|'.join(self._modules))
"once", category=wtype, module='|'.join(self._modules))