Lines Matching refs:category
73 self.module.filterwarnings("error", category=UserWarning)
81 self.module.filterwarnings("ignore", category=UserWarning)
89 self.module.filterwarnings("always", category=UserWarning)
100 self.module.filterwarnings("default", category=UserWarning)
116 self.module.filterwarnings("module", category=UserWarning)
128 self.module.filterwarnings("once", category=UserWarning)
144 self.module.filterwarnings("error", category=Warning)
152 self.module.filterwarnings("ignore", category=UserWarning)
153 self.module.filterwarnings("error", category=UserWarning,
174 self.assertTrue(w[-1].category is UserWarning)
187 self.assertTrue(w[-1].category is UserWarning)
208 self.assertTrue(w[-1].category is UserWarning)
328 # Either 'message' needs to be an instance of Warning or 'category'
434 self.module.filterwarnings("once", category=UserWarning)
493 self.module.filterwarnings("always", category=UserWarning)
502 self.module.filterwarnings("always", category=UserWarning)
514 self.module.filterwarnings("always", category=UserWarning)
539 self.module.filterwarnings("always", category=UserWarning)
553 category = Warning
558 expect = format % (file_name, line_num, category.__name__, message,
561 category, file_name, line_num))
564 expect = format % (file_name, line_num, category.__name__, message,
567 category, file_name, line_num, file_line))
574 category = Warning
576 expect = self.module.formatwarning(message, category, file_name,
578 self.module.showwarning(message, category, file_name, line_num,
583 expect = self.module.formatwarning(message, category, file_name,
586 self.module.showwarning(message, category, file_name, line_num,