Lines Matching refs:assertWarnsRegex
1150 return self.assertWarnsRegex(BytesWarning,
1351 self.assertRaises(TypeError, self.assertWarnsRegex, MyWarn, lambda: True)
1491 self.assertWarnsRegex(RuntimeWarning, "o+",
1495 self.assertWarnsRegex(RuntimeWarning, "o+",
1499 self.assertWarnsRegex(RuntimeWarning, "o+", None)
1505 self.assertWarnsRegex(DeprecationWarning, "o+",
1509 self.assertWarnsRegex(RuntimeWarning, "o+",
1518 self.assertWarnsRegex(RuntimeWarning, "o+",
1526 with self.assertWarnsRegex(RuntimeWarning, "o+") as cm:
1534 with self.assertWarnsRegex(RuntimeWarning, "o+"):
1538 with self.assertWarnsRegex(RuntimeWarning, 'o+', msg='foobar'):
1542 with self.assertWarnsRegex(RuntimeWarning, 'o+', foobar=42):
1549 with self.assertWarnsRegex(DeprecationWarning, "o+"):
1553 with self.assertWarnsRegex(RuntimeWarning, "o+"):
1562 with self.assertWarnsRegex(RuntimeWarning, "o+"):
1567 self.assertWarnsRegex()
1569 self.assertWarnsRegex(UserWarning)
1571 self.assertWarnsRegex(1, 'expect')
1573 self.assertWarnsRegex(object, 'expect')
1575 self.assertWarnsRegex((UserWarning, 1), 'expect')
1577 self.assertWarnsRegex((UserWarning, object), 'expect')
1579 self.assertWarnsRegex((UserWarning, Exception), 'expect')