Lines Matching refs:original_warnings
13 import warnings as original_warnings namespace
31 original_warnings = warning_tests.warnings
39 warning_tests.warnings = original_warnings
62 sys.modules['warnings'] = original_warnings
90 with original_warnings.catch_warnings(module=self.module) as w:
97 with original_warnings.catch_warnings(record=True,
105 with original_warnings.catch_warnings(record=True,
120 with original_warnings.catch_warnings(record=True,
136 with original_warnings.catch_warnings(record=True,
148 with original_warnings.catch_warnings(record=True,
165 with original_warnings.catch_warnings(module=self.module) as w:
172 with original_warnings.catch_warnings(record=True,
188 with original_warnings.catch_warnings(record=True,
213 with original_warnings.catch_warnings(record=True,
236 with original_warnings.catch_warnings(record=True,
247 with original_warnings.catch_warnings(record=True,
260 with original_warnings.catch_warnings(record=True,
290 with original_warnings.catch_warnings(record=True,
307 with original_warnings.catch_warnings(record=True,
326 with original_warnings.catch_warnings(record=True,
347 with original_warnings.catch_warnings(record=True,
391 self.assertFalse(original_warnings is self.module)
400 self.assertFalse(original_warnings is self.module)
409 with original_warnings.catch_warnings(module=self.module):
450 with original_warnings.catch_warnings(module=self.module) as w:
465 with original_warnings.catch_warnings(record=True,
493 with original_warnings.catch_warnings(record=True,
526 with original_warnings.catch_warnings(module=self.module):
535 with original_warnings.catch_warnings(module=self.module):
547 with original_warnings.catch_warnings(module=self.module):
572 with original_warnings.catch_warnings(module=self.module, record=True) as w:
602 with original_warnings.catch_warnings(module=wmod):
617 with original_warnings.catch_warnings(module=wmod):