Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/unittest/test/
Dtest_case.py1150 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 …]
/external/python/cpython3/Lib/test/
Dtest_file.py197 with self.assertWarnsRegex(RuntimeWarning, 'line buffering'):
Dtest_wsgiref.py363 with self.assertWarnsRegex(DeprecationWarning,
812 with self.assertWarnsRegex(DeprecationWarning, msg):
Dtest_runpy.py480 with self.assertWarnsRegex(RuntimeWarning,
498 with self.assertWarnsRegex(RuntimeWarning, r"found in sys\.modules"):
Dtest_gettext.py511 with self.assertWarnsRegex(DeprecationWarning,
810 with self.assertWarnsRegex(DeprecationWarning, 'parameter codeset'):
Dtest_pulldom.py165 with self.assertWarnsRegex(DeprecationWarning,
Dtest_coroutines.py641 with self.assertWarnsRegex(
648 with self.assertWarnsRegex(
Dtest_contextlib.py133 with self.assertWarnsRegex(DeprecationWarning,
Dtest_fileinput.py369 with self.assertWarnsRegex(DeprecationWarning,
Dtest_xml_etree.py2981 with self.assertWarnsRegex(FutureWarning, msg):
3371 with self.assertWarnsRegex(RuntimeWarning, 'doctype'):
Dtest_posix.py623 self.assertWarnsRegex(DeprecationWarning,
Dtest_subprocess.py1174 with self.assertWarnsRegex(RuntimeWarning, 'line buffering'):
Dtest_os.py3610 with self.assertWarnsRegex(DeprecationWarning, 'should be'):
/external/python/cpython3/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
/external/python/cpython3/Doc/library/
Dunittest.rst857 :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'):
/external/python/cpython3/Lib/unittest/
Dcase.py1278 def assertWarnsRegex(self, expected_warning, expected_regex, member in TestCase
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_unix_events.py260 with self.assertWarnsRegex(ResourceWarning,
1741 with self.assertWarnsRegex(
Dtest_events.py263 with self.assertWarnsRegex(
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestasync.py49 with test.assertWarnsRegex(RuntimeWarning, "was never awaited$"):
/external/python/cpython3/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
/external/python/cpython3/Misc/
DHISTORY1996 - Issue #20145: `assertRaisesRegex` and `assertWarnsRegex` now raise a
9707 assertWarnsRegex now accept a keyword argument 'msg' when used as context