Home
last modified time | relevance | path

Searched refs:assertWarnsRegex (Results 1 – 24 of 24) sorted by relevance

/third_party/python/Lib/unittest/test/
Dtest_case.py1157 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 …]
/third_party/python/Lib/test/
Dtest_threading.py467 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()'):
Dtest_wsgiref.py364 with self.assertWarnsRegex(DeprecationWarning,
813 with self.assertWarnsRegex(DeprecationWarning, msg):
Dtest_file.py216 with self.assertWarnsRegex(RuntimeWarning, 'line buffering'):
Dtest_runpy.py480 with self.assertWarnsRegex(RuntimeWarning,
498 with self.assertWarnsRegex(RuntimeWarning, r"found in sys\.modules"):
Dtest_gettext.py512 with self.assertWarnsRegex(DeprecationWarning,
811 with self.assertWarnsRegex(DeprecationWarning, 'parameter codeset'):
Dtest_pulldom.py165 with self.assertWarnsRegex(DeprecationWarning,
Dtest_coroutines.py643 with self.assertWarnsRegex(
650 with self.assertWarnsRegex(
Dtest_fileinput.py382 with self.assertWarnsRegex(DeprecationWarning,
Dtest_xml_etree.py3041 with self.assertWarnsRegex(FutureWarning, msg):
3431 with self.assertWarnsRegex(RuntimeWarning, 'doctype'):
Dtest_posix.py630 self.assertWarnsRegex(DeprecationWarning,
Dtest_subprocess.py1266 with self.assertWarnsRegex(RuntimeWarning, 'line buffering'):
Dtest_os.py3838 with self.assertWarnsRegex(DeprecationWarning, 'should be'):
/third_party/python/Misc/NEWS.d/
D3.5.0b1.rst264 assertRaises(), assertRaisesRegex(), assertWarns() and assertWarnsRegex()
527 assertRaises(), assertRaisesRegex(), assertWarns() and assertWarnsRegex()
D3.5.0a1.rst4176 `assertRaisesRegex` and `assertWarnsRegex` now raise a TypeError if the
D3.8.0a1.rst3583 :func:`~unittest.TestCase.assertWarnsRegex` no longer success if the passed
/third_party/python/Doc/library/
Dunittest.rst861 :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'):
/third_party/python/Lib/test/test_asyncio/
Dtest_unix_events.py269 with self.assertWarnsRegex(ResourceWarning,
1611 with self.assertWarnsRegex(
Dtest_events.py284 with self.assertWarnsRegex(
/third_party/python/Lib/unittest/
Dcase.py1293 def assertWarnsRegex(self, expected_warning, expected_regex, member in TestCase
/third_party/python/Lib/unittest/test/testmock/
Dtestasync.py49 with test.assertWarnsRegex(RuntimeWarning, "was never awaited$"):
/third_party/python/Doc/whatsnew/
D3.3.rst2092 :meth:`.assertWarnsRegex` now accept a keyword argument *msg* when used as
D3.2.rst1767 :meth:`~unittest.TestCase.assertWarnsRegex` to verify that a given warning type
/third_party/python/Misc/
DHISTORY1996 - Issue #20145: `assertRaisesRegex` and `assertWarnsRegex` now raise a
9707 assertWarnsRegex now accept a keyword argument 'msg' when used as context