Searched refs:assertWarnsRegex (Results 1 – 24 of 24) sorted by relevance
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+"):[all …]
197 with self.assertWarnsRegex(RuntimeWarning, 'line buffering'):
363 with self.assertWarnsRegex(DeprecationWarning,812 with self.assertWarnsRegex(DeprecationWarning, msg):
480 with self.assertWarnsRegex(RuntimeWarning,498 with self.assertWarnsRegex(RuntimeWarning, r"found in sys\.modules"):
511 with self.assertWarnsRegex(DeprecationWarning,810 with self.assertWarnsRegex(DeprecationWarning, 'parameter codeset'):
165 with self.assertWarnsRegex(DeprecationWarning,
641 with self.assertWarnsRegex(648 with self.assertWarnsRegex(
133 with self.assertWarnsRegex(DeprecationWarning,
369 with self.assertWarnsRegex(DeprecationWarning,
2981 with self.assertWarnsRegex(FutureWarning, msg):3371 with self.assertWarnsRegex(RuntimeWarning, 'doctype'):
623 self.assertWarnsRegex(DeprecationWarning,
1174 with self.assertWarnsRegex(RuntimeWarning, 'line buffering'):
3610 with self.assertWarnsRegex(DeprecationWarning, 'should be'):
264 assertRaises(), assertRaisesRegex(), assertWarns() and assertWarnsRegex()527 assertRaises(), assertRaisesRegex(), assertWarns() and assertWarnsRegex()
4176 `assertRaisesRegex` and `assertWarnsRegex` now raise a TypeError if the
3583 :func:`~unittest.TestCase.assertWarnsRegex` no longer success if the passed
857 :meth:`assertRaisesRegex`, :meth:`assertWarns`, :meth:`assertWarnsRegex`947 …| :meth:`assertWarnsRegex(warn, r, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *warn* |…948 …| <TestCase.assertWarnsRegex>` | and the message matches regex *r* |…1061 .. method:: assertWarnsRegex(warning, regex, callable, *args, **kwds)1062 assertWarnsRegex(warning, regex, *, msg=None)1069 self.assertWarnsRegex(DeprecationWarning,1075 with self.assertWarnsRegex(RuntimeWarning, 'unsafe frobnicating'):
1278 def assertWarnsRegex(self, expected_warning, expected_regex, member in TestCase
260 with self.assertWarnsRegex(ResourceWarning,1741 with self.assertWarnsRegex(
263 with self.assertWarnsRegex(
49 with test.assertWarnsRegex(RuntimeWarning, "was never awaited$"):
2092 :meth:`.assertWarnsRegex` now accept a keyword argument *msg* when used as
1767 :meth:`~unittest.TestCase.assertWarnsRegex` to verify that a given warning type
1996 - Issue #20145: `assertRaisesRegex` and `assertWarnsRegex` now raise a9707 assertWarnsRegex now accept a keyword argument 'msg' when used as context