Lines Matching full:warnings
5 import warnings
137 failfast=False, buffer=False, resultclass=None, warnings=None, argument
152 self.warnings = warnings
166 with warnings.catch_warnings():
167 if self.warnings:
168 # if self.warnings is set, use it to filter all the warnings
169 warnings.simplefilter(self.warnings)
171 # warnings from the deprecated unittest methods to show them
174 # only when self.warnings is None.
175 if self.warnings in ['default', 'always']:
176 warnings.filterwarnings('module',