Searched refs:assertWarnsRegex (Results 1 – 24 of 24) sorted by relevance
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+"):[all …]
467 with self.assertWarnsRegex(DeprecationWarning,470 with self.assertWarnsRegex(DeprecationWarning,473 with self.assertWarnsRegex(DeprecationWarning,476 with self.assertWarnsRegex(DeprecationWarning,481 with self.assertWarnsRegex(DeprecationWarning, 'use is_set()'):486 with self.assertWarnsRegex(DeprecationWarning, 'use notify_all()'):489 with self.assertWarnsRegex(DeprecationWarning, 'use active_count()'):491 with self.assertWarnsRegex(DeprecationWarning, 'use current_thread()'):
364 with self.assertWarnsRegex(DeprecationWarning,813 with self.assertWarnsRegex(DeprecationWarning, msg):
216 with self.assertWarnsRegex(RuntimeWarning, 'line buffering'):
480 with self.assertWarnsRegex(RuntimeWarning,498 with self.assertWarnsRegex(RuntimeWarning, r"found in sys\.modules"):
512 with self.assertWarnsRegex(DeprecationWarning,811 with self.assertWarnsRegex(DeprecationWarning, 'parameter codeset'):
165 with self.assertWarnsRegex(DeprecationWarning,
643 with self.assertWarnsRegex(650 with self.assertWarnsRegex(
382 with self.assertWarnsRegex(DeprecationWarning,
3041 with self.assertWarnsRegex(FutureWarning, msg):3431 with self.assertWarnsRegex(RuntimeWarning, 'doctype'):
630 self.assertWarnsRegex(DeprecationWarning,
1266 with self.assertWarnsRegex(RuntimeWarning, 'line buffering'):
3838 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
861 :meth:`assertRaisesRegex`, :meth:`assertWarns`, :meth:`assertWarnsRegex`951 …| :meth:`assertWarnsRegex(warn, r, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *warn* |…952 …| <TestCase.assertWarnsRegex>` | and the message matches regex *r* |…1068 .. method:: assertWarnsRegex(warning, regex, callable, *args, **kwds)1069 assertWarnsRegex(warning, regex, *, msg=None)1076 self.assertWarnsRegex(DeprecationWarning,1082 with self.assertWarnsRegex(RuntimeWarning, 'unsafe frobnicating'):
269 with self.assertWarnsRegex(ResourceWarning,1611 with self.assertWarnsRegex(
284 with self.assertWarnsRegex(
1293 def assertWarnsRegex(self, expected_warning, expected_regex, member in TestCase
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