Searched refs:check_warnings (Results 1 – 25 of 100) sorted by relevance
1234
/external/python/cpython2/Lib/test/ |
D | test_structmembers.py | 82 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)):
|
D | test_ascii_formatd.py | 6 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',
|
D | test_syntax.py | 678 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',
|
D | test_fnmatch.py | 59 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):
|
D | test_commands.py | 9 check_warnings 63 with check_warnings((".*commands.getstatus.. is deprecated",
|
D | test_pep352.py | 5 from test.test_support import run_unittest, check_warnings 24 with check_warnings(*_deprecations, quiet=True): 141 with check_warnings(("", DeprecationWarning)):
|
D | test_cookie.py | 3 from test.test_support import run_unittest, run_doctest, check_warnings 175 with check_warnings(('.+Cookie class is insecure; do not use it',
|
D | test_coercion.py | 3 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",
|
D | test_cgi.py | 1 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.'
|
/external/python/cpython3/Lib/test/ |
D | test_structmembers.py | 119 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)):
|
D | test_lib2to3.py | 2 from test.support import check_warnings, import_fresh_module 4 with check_warnings(("", PendingDeprecationWarning)):
|
D | test_smtpd.py | 717 with support.check_warnings(('', DeprecationWarning)): 719 with support.check_warnings(('', DeprecationWarning)): 721 with support.check_warnings(('', DeprecationWarning)): 723 with support.check_warnings(('', DeprecationWarning)): 725 with support.check_warnings(('', DeprecationWarning)): 727 with support.check_warnings(('', DeprecationWarning)): 729 with support.check_warnings(('', DeprecationWarning)): 731 with support.check_warnings(('', DeprecationWarning)): 733 with support.check_warnings(('', DeprecationWarning)): 735 with support.check_warnings(('', DeprecationWarning)): [all …]
|
D | test_global.py | 3 from test.support import run_unittest, check_syntax_error, check_warnings 11 self._warnings_manager = check_warnings()
|
D | test_pkgutil.py | 1 from test.support import run_unittest, unload, check_warnings, CleanImport 498 return check_warnings( 511 with check_warnings() as w: 523 with check_warnings() as w: 562 with check_warnings() as w: 570 with check_warnings() as w: 575 with check_warnings() as w:
|
D | test___all__.py | 18 with support.check_warnings( 34 with support.check_warnings(
|
D | test_sundry.py | 11 with support.check_warnings(quiet=True):
|
D | test_binhex.py | 9 with support.check_warnings(('', DeprecationWarning)):
|
/external/python/cpython3/Lib/distutils/tests/ |
D | test_bdist_msi.py | 4 from test.support import run_unittest, check_warnings 17 with check_warnings(("", DeprecationWarning)):
|
D | test_bdist_wininst.py | 5 from test.support import run_unittest, check_warnings 24 with check_warnings(("", DeprecationWarning)):
|
D | test_extension.py | 6 from test.support import check_warnings, run_unittest 57 with check_warnings() as w:
|
D | test_register.py | 8 from test.support import check_warnings, run_unittest 292 with check_warnings() as w:
|
D | test_sysconfig.py | 13 from test.support import TESTFN, run_unittest, check_warnings, swap_item 236 with check_warnings(('', DeprecationWarning)):
|
/external/python/cpython2/Lib/distutils/tests/ |
D | test_archive_util.py | 17 from test.test_support import check_warnings, run_unittest 182 with check_warnings() as w: 196 with check_warnings() as w:
|
D | test_register.py | 9 from test.test_support import check_warnings, run_unittest 281 with check_warnings() as w:
|
/external/python/cpython2/Doc/library/ |
D | test.rst | 297 .. 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