Lines Matching refs:warnings
5 import warnings
170 failfast=False, buffer=False, resultclass=None, warnings=None,
185 self.warnings = warnings
199 with warnings.catch_warnings():
200 if self.warnings:
201 # if self.warnings is set, use it to filter all the warnings
202 warnings.simplefilter(self.warnings)
204 # warnings from the deprecated unittest methods to show them
207 # only when self.warnings is None.
208 if self.warnings in ['default', 'always']:
209 warnings.filterwarnings('module',