Lines Matching refs:assertWarnsRegex
1157 return self.assertWarnsRegex(BytesWarning,
1358 self.assertRaises(TypeError, self.assertWarnsRegex, MyWarn, lambda: True)
1512 self.assertWarnsRegex(RuntimeWarning, "o+",
1516 self.assertWarnsRegex(RuntimeWarning, "o+",
1520 self.assertWarnsRegex(RuntimeWarning, "o+", None)
1526 self.assertWarnsRegex(DeprecationWarning, "o+",
1530 self.assertWarnsRegex(RuntimeWarning, "o+",
1539 self.assertWarnsRegex(RuntimeWarning, "o+",
1547 with self.assertWarnsRegex(RuntimeWarning, "o+") as cm:
1555 with self.assertWarnsRegex(RuntimeWarning, "o+"):
1559 with self.assertWarnsRegex(RuntimeWarning, 'o+', msg='foobar'):
1563 with self.assertWarnsRegex(RuntimeWarning, 'o+', foobar=42):
1570 with self.assertWarnsRegex(DeprecationWarning, "o+"):
1574 with self.assertWarnsRegex(RuntimeWarning, "o+"):
1583 with self.assertWarnsRegex(RuntimeWarning, "o+"):
1588 self.assertWarnsRegex()
1590 self.assertWarnsRegex(UserWarning)
1592 self.assertWarnsRegex(1, 'expect')
1594 self.assertWarnsRegex(object, 'expect')
1596 self.assertWarnsRegex((UserWarning, 1), 'expect')
1598 self.assertWarnsRegex((UserWarning, object), 'expect')
1600 self.assertWarnsRegex((UserWarning, Exception), 'expect')