Searched refs:catch_warnings (Results 1 – 25 of 39) sorted by relevance
12
/external/python/cpython2/Lib/test/ |
D | test_warnings.py | 90 with original_warnings.catch_warnings(module=self.module) as w: 97 with original_warnings.catch_warnings(record=True, 105 with original_warnings.catch_warnings(record=True, 116 with original_warnings.catch_warnings(record=True, 132 with original_warnings.catch_warnings(record=True, 144 with original_warnings.catch_warnings(record=True, 161 with original_warnings.catch_warnings(module=self.module) as w: 168 with original_warnings.catch_warnings(record=True, 184 with original_warnings.catch_warnings(record=True, 209 with original_warnings.catch_warnings(record=True, [all …]
|
D | test_global.py | 47 with warnings.catch_warnings():
|
D | test_py3kwarn.py | 375 with CleanImport(module_name), warnings.catch_warnings(): 427 with warnings.catch_warnings(): 436 with warnings.catch_warnings():
|
D | test_userstring.py | 135 with warnings.catch_warnings():
|
D | test_posix.py | 48 with warnings.catch_warnings(): 422 with warnings.catch_warnings(): 431 with warnings.catch_warnings():
|
D | test_pep352.py | 214 with warnings.catch_warnings():
|
D | test_os.py | 90 with warnings.catch_warnings(): 119 with warnings.catch_warnings(): 155 with warnings.catch_warnings():
|
D | test_hmac.py | 216 with warnings.catch_warnings():
|
D | test_support.py | 67 with warnings.catch_warnings(): 883 with warnings.catch_warnings(record=True) as w:
|
D | test_getargs2.py | 287 with warnings.catch_warnings(): 294 with warnings.catch_warnings():
|
D | test_asyncore.py | 320 with warnings.catch_warnings(record=True) as w:
|
/external/python/cpython2/Doc/library/ |
D | warnings.rst | 188 the warning using the :class:`catch_warnings` context manager:: 195 with warnings.catch_warnings(): 203 application. If two or more threads use the :class:`catch_warnings` context 213 To test warnings raised by code, use the :class:`catch_warnings` context 223 with warnings.catch_warnings(record=True) as w: 244 application. If two or more threads use the :class:`catch_warnings` context 399 .. class:: catch_warnings([\*, record=False, module=None]) 417 The :class:`catch_warnings` manager works by replacing and 426 :class:`catch_warnings` are keyword-only arguments.
|
D | test.rst | 294 A convenience wrapper for :func:`warnings.catch_warnings()` that makes it 296 equivalent to calling ``warnings.catch_warnings(record=True)`` with 317 :func:`~warnings.catch_warnings` is available via the recorder object's
|
/external/python/cpython2/Lib/ |
D | asynchat.py | 54 from warnings import filterwarnings, catch_warnings 228 with catch_warnings():
|
D | mimetools.py | 7 from warnings import filterwarnings, catch_warnings 8 with catch_warnings():
|
D | BaseHTTPServer.py | 76 from warnings import filterwarnings, catch_warnings 77 with catch_warnings():
|
D | cgi.py | 43 from warnings import filterwarnings, catch_warnings, warn 44 with catch_warnings():
|
D | warnings.py | 323 class catch_warnings(object): class
|
D | pprint.py | 78 with warnings.catch_warnings():
|
/external/python/cpython2/Lib/distutils/tests/ |
D | support.py | 18 with warnings.catch_warnings():
|
/external/python/cpython2/Lib/idlelib/idle_test/ |
D | test_calltips.py | 178 with warnings.catch_warnings():
|
/external/python/cpython2/Lib/bsddb/test/ |
D | test_early_close.py | 187 w = warnings.catch_warnings()
|
/external/python/cpython2/Lib/bsddb/ |
D | dbshelve.py | 56 w = warnings.catch_warnings()
|
/external/autotest/client/common_lib/ |
D | control_data.py | 5 with warnings.catch_warnings():
|
/external/trappy/tests/ |
D | test_plotter.py | 277 with warnings.catch_warnings(record=True) as warn:
|
12