Lines Matching refs:showwarning
490 # Test that showwarning() missing is okay.
491 text = 'del showwarning test'
494 del self.module.showwarning
503 old_showwarning = self.module.showwarning
504 self.module.showwarning = 23
508 self.module.showwarning = old_showwarning
515 del self.module.showwarning
578 self.module.showwarning(message, category, file_name, line_num,
586 self.module.showwarning(message, category, file_name, line_num,
604 orig_showwarning = wmod.showwarning
605 # Ensure both showwarning and filters are restored when recording
607 wmod.filters = wmod.showwarning = object()
609 self.assertTrue(wmod.showwarning is orig_showwarning)
612 wmod.filters = wmod.showwarning = object()
614 self.assertTrue(wmod.showwarning is orig_showwarning)
632 orig_showwarning = wmod.showwarning
635 self.assertTrue(wmod.showwarning is orig_showwarning)
653 orig_showwarning = wmod.showwarning
657 self.assertTrue(wmod.showwarning is orig_showwarning)
664 self.assertTrue(wmod.showwarning is orig_showwarning)