Home
last modified time | relevance | path

Searched refs:check_warnings (Results 1 – 25 of 46) sorted by relevance

12

/external/python/cpython2/Lib/test/
Dtest_structmembers.py82 with test_support.check_warnings(('', RuntimeWarning)):
86 with test_support.check_warnings(('', RuntimeWarning)):
90 with test_support.check_warnings(('', RuntimeWarning)):
94 with test_support.check_warnings(('', RuntimeWarning)):
98 with test_support.check_warnings(('', RuntimeWarning)):
102 with test_support.check_warnings(('', RuntimeWarning)):
Dtest_ascii_formatd.py6 from test.test_support import check_warnings, run_unittest, import_module
20 with check_warnings(('PyOS_ascii_formatd is deprecated',
46 with check_warnings(('PyOS_ascii_formatd is deprecated',
Dtest_commands.py9 check_warnings
63 with check_warnings((".*commands.getstatus.. is deprecated",
Dtest_pep352.py5 from test.test_support import run_unittest, check_warnings
24 with check_warnings(*_deprecations, quiet=True):
141 with check_warnings(("", DeprecationWarning)):
Dtest_cookie.py3 from test.test_support import run_unittest, run_doctest, check_warnings
175 with check_warnings(('.+Cookie class is insecure; do not use it',
Dtest_coercion.py3 from test.test_support import run_unittest, TestFailed, check_warnings
226 with check_warnings(("classic (int|long) division", DeprecationWarning),
341 with check_warnings(("complex divmod.., // and % are deprecated",
Dtest_cgi.py1 from test.test_support import run_unittest, check_warnings
381 with check_warnings(('cgi.parse_qs is deprecated, use urlparse.'
388 with check_warnings(('cgi.parse_qsl is deprecated, use urlparse.'
Dtest_userdict.py33 with test_support.check_warnings((".*'dict'.*",
162 with test_support.check_warnings((".*'dict'.*",
176 with test_support.check_warnings((".*'dict'.*",
Dtest_sundry.py10 with test_support.check_warnings(quiet=True):
Dtest_import.py15 is_jython, check_warnings, EnvironmentVarGuard)
301 with check_warnings(('', ImportWarning)):
595 with check_warnings(('.+foo', RuntimeWarning)):
601 with check_warnings(('.+foo', RuntimeWarning)):
Dtest_struct.py7 from test.test_support import (check_warnings, check_py3k_warnings)
39 with check_warnings((".*integer argument expected, got float",
319 with check_warnings(("integer argument expected, "
328 with check_warnings((".*integer argument expected, got non"
Dtest_scope.py3 check_warnings, run_unittest
659 with check_warnings(("import \* only allowed at module level",
Dtest_macostools.py52 with test_support.check_warnings(('macostools.touched*',
Dtest___all__.py26 with support.check_warnings((".* (module|package)",
Dtest_exceptions.py9 check_warnings, cpython_only)
317 with check_warnings(("BaseException.message has been deprecated "
327 with check_warnings(quiet=True) as w:
Dtest_doctest.py2737 with test_support.check_warnings(*deprecations):
Dtest_warnings.py772 with test_support.check_warnings(quiet=False) as w:
784 with test_support.check_warnings():
787 with test_support.check_warnings(('foo', UserWarning)):
791 with test_support.check_warnings(('', RuntimeWarning)):
795 with test_support.check_warnings(('foo', RuntimeWarning)):
Dtest_xml_etree.py1893 self.checkwarnings = test_support.check_warnings(*deprecations,
Dtest_fileio.py14 from test.test_support import TESTFN, check_warnings, run_unittest, make_bad_fd
462 with check_warnings(quiet=True) as w:
Dtest_zipimport_support.py190 with test.test_support.check_warnings(*deprecations):
Dtest_symtable.py46 with test_support.check_warnings(
/external/python/cpython2/Lib/distutils/tests/
Dtest_archive_util.py17 from test.test_support import check_warnings, run_unittest
182 with check_warnings() as w:
196 with check_warnings() as w:
Dtest_register.py9 from test.test_support import check_warnings, run_unittest
281 with check_warnings() as w:
Dtest_sdist.py9 from test.test_support import captured_stdout, check_warnings, run_unittest
285 with check_warnings() as w:
/external/python/cpython2/Doc/library/
Dtest.rst292 .. function:: check_warnings(*filters, quiet=True)
300 ``check_warnings`` accepts 2-tuples of the form ``("message regexp",
311 check_warnings(("", Warning), quiet=True)
329 with check_warnings(("assertion is always true", SyntaxWarning),
335 raised, :func:`check_warnings` would raise an error.
340 with check_warnings(quiet=True) as w:
360 Similar to :func:`check_warnings`, but for Python 3 compatibility warnings.
474 :func:`check_warnings` above for more details.

12