Home
last modified time | relevance | path

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

1234

/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_syntax.py678 with support.check_warnings((".*assigned to before global declaration",
688 with support.check_warnings(('.*used prior to global declaration',
698 with support.check_warnings(('.*assigned to before global declaration',
Dtest_fnmatch.py59 with test_support.check_warnings(("", UnicodeWarning), quiet=True):
89 with test_support.check_warnings(("", UnicodeWarning), quiet=True):
132 with test_support.check_warnings(("", UnicodeWarning), quiet=True):
137 with test_support.check_warnings(("", UnicodeWarning), quiet=True):
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_import.py15 is_jython, check_warnings, EnvironmentVarGuard)
301 with check_warnings(('', ImportWarning)):
594 with check_warnings(('.+foo', RuntimeWarning)):
600 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"
/external/python/cpython3/Lib/test/
Dtest_structmembers.py119 with support.check_warnings(('', RuntimeWarning)):
123 with support.check_warnings(('', RuntimeWarning)):
127 with support.check_warnings(('', RuntimeWarning)):
131 with support.check_warnings(('', RuntimeWarning)):
135 with support.check_warnings(('', RuntimeWarning)):
139 with support.check_warnings(('', RuntimeWarning)):
Dtest_smtpd.py716 with support.check_warnings(('', DeprecationWarning)):
718 with support.check_warnings(('', DeprecationWarning)):
720 with support.check_warnings(('', DeprecationWarning)):
722 with support.check_warnings(('', DeprecationWarning)):
724 with support.check_warnings(('', DeprecationWarning)):
726 with support.check_warnings(('', DeprecationWarning)):
728 with support.check_warnings(('', DeprecationWarning)):
730 with support.check_warnings(('', DeprecationWarning)):
732 with support.check_warnings(('', DeprecationWarning)):
734 with support.check_warnings(('', DeprecationWarning)):
[all …]
Dtest_global.py3 from test.support import run_unittest, check_syntax_error, check_warnings
11 self._warnings_manager = check_warnings()
Dtest_pkgutil.py1 from test.support import run_unittest, unload, check_warnings, CleanImport
407 return check_warnings(
420 with check_warnings() as w:
432 with check_warnings() as w:
471 with check_warnings() as w:
479 with check_warnings() as w:
484 with check_warnings() as w:
Dtest_super.py5 from test.support import check_warnings
177 with check_warnings() as w:
248 with check_warnings() as w:
263 with check_warnings(expected_warning):
Dtest_sundry.py10 with support.check_warnings(quiet=True):
/external/python/cpython3/Lib/distutils/tests/
Dtest_extension.py6 from test.support import check_warnings, run_unittest
57 with check_warnings() as w:
Dtest_sysconfig.py12 from test.support import TESTFN, run_unittest, check_warnings
160 with check_warnings(('', DeprecationWarning)):
Dtest_register.py8 from test.support import check_warnings, run_unittest
292 with check_warnings() as w:
Dtest_archive_util.py16 from test.support import check_warnings, run_unittest, patch, change_cwd
212 with check_warnings() as w:
226 with check_warnings() as w:
/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:
/external/python/cpython2/Doc/library/
Dtest.rst297 .. function:: check_warnings(*filters, quiet=True)
305 ``check_warnings`` accepts 2-tuples of the form ``("message regexp",
316 check_warnings(("", Warning), quiet=True)
334 with check_warnings(("assertion is always true", SyntaxWarning),
340 raised, :func:`check_warnings` would raise an error.
345 with check_warnings(quiet=True) as w:
365 Similar to :func:`check_warnings`, but for Python 3 compatibility warnings.
479 :func:`check_warnings` above for more details.

1234