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
566 self.module.showwarning(message, category, file_name, line_num,
574 self.module.showwarning(message, category, file_name, line_num,
592 orig_showwarning = wmod.showwarning
593 # Ensure both showwarning and filters are restored when recording
595 wmod.filters = wmod.showwarning = object()
597 self.assertTrue(wmod.showwarning is orig_showwarning)
600 wmod.filters = wmod.showwarning = object()
602 self.assertTrue(wmod.showwarning is orig_showwarning)
620 orig_showwarning = wmod.showwarning
623 self.assertTrue(wmod.showwarning is orig_showwarning)
641 orig_showwarning = wmod.showwarning
645 self.assertTrue(wmod.showwarning is orig_showwarning)
652 self.assertTrue(wmod.showwarning is orig_showwarning)