Home
last modified time | relevance | path

Searched refs:catch_warnings (Results 1 – 25 of 39) sorted by relevance

12

/external/python/cpython2/Lib/test/
Dtest_warnings.py90 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 …]
Dtest_global.py47 with warnings.catch_warnings():
Dtest_py3kwarn.py375 with CleanImport(module_name), warnings.catch_warnings():
427 with warnings.catch_warnings():
436 with warnings.catch_warnings():
Dtest_userstring.py135 with warnings.catch_warnings():
Dtest_posix.py48 with warnings.catch_warnings():
422 with warnings.catch_warnings():
431 with warnings.catch_warnings():
Dtest_pep352.py214 with warnings.catch_warnings():
Dtest_os.py90 with warnings.catch_warnings():
119 with warnings.catch_warnings():
155 with warnings.catch_warnings():
Dtest_hmac.py216 with warnings.catch_warnings():
Dtest_support.py67 with warnings.catch_warnings():
883 with warnings.catch_warnings(record=True) as w:
Dtest_getargs2.py287 with warnings.catch_warnings():
294 with warnings.catch_warnings():
Dtest_asyncore.py320 with warnings.catch_warnings(record=True) as w:
/external/python/cpython2/Doc/library/
Dwarnings.rst188 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.
Dtest.rst294 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/
Dasynchat.py54 from warnings import filterwarnings, catch_warnings
228 with catch_warnings():
Dmimetools.py7 from warnings import filterwarnings, catch_warnings
8 with catch_warnings():
DBaseHTTPServer.py76 from warnings import filterwarnings, catch_warnings
77 with catch_warnings():
Dcgi.py43 from warnings import filterwarnings, catch_warnings, warn
44 with catch_warnings():
Dwarnings.py323 class catch_warnings(object): class
Dpprint.py78 with warnings.catch_warnings():
/external/python/cpython2/Lib/distutils/tests/
Dsupport.py18 with warnings.catch_warnings():
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_calltips.py178 with warnings.catch_warnings():
/external/python/cpython2/Lib/bsddb/test/
Dtest_early_close.py187 w = warnings.catch_warnings()
/external/python/cpython2/Lib/bsddb/
Ddbshelve.py56 w = warnings.catch_warnings()
/external/autotest/client/common_lib/
Dcontrol_data.py5 with warnings.catch_warnings():
/external/trappy/tests/
Dtest_plotter.py277 with warnings.catch_warnings(record=True) as warn:

12