Home
last modified time | relevance | path

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

12345

/external/python/cpython3/Lib/test/test_warnings/
D__init__.py99 with original_warnings.catch_warnings(module=self.module) as w:
106 with original_warnings.catch_warnings(module=self.module) as w:
124 with original_warnings.catch_warnings(record=True,
133 with original_warnings.catch_warnings(record=True,
146 with original_warnings.catch_warnings(record=True,
161 with original_warnings.catch_warnings(record=True,
181 with original_warnings.catch_warnings(record=True,
197 with original_warnings.catch_warnings(record=True,
209 with original_warnings.catch_warnings(record=True,
226 with original_warnings.catch_warnings(record=True,
[all …]
/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,
120 with original_warnings.catch_warnings(record=True,
136 with original_warnings.catch_warnings(record=True,
148 with original_warnings.catch_warnings(record=True,
165 with original_warnings.catch_warnings(module=self.module) as w:
172 with original_warnings.catch_warnings(record=True,
188 with original_warnings.catch_warnings(record=True,
213 with original_warnings.catch_warnings(record=True,
[all …]
Dtest_global.py47 with warnings.catch_warnings():
/external/python/cpython3/Lib/test/test_importlib/frozen/
Dtest_loader.py65 with warnings.catch_warnings():
96 with warnings.catch_warnings():
110 with warnings.catch_warnings():
129 with warnings.catch_warnings():
146 with warnings.catch_warnings():
156 with warnings.catch_warnings():
/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_file_loader.py45 with warnings.catch_warnings():
78 with warnings.catch_warnings():
91 with warnings.catch_warnings():
106 with warnings.catch_warnings():
122 with warnings.catch_warnings():
129 with warnings.catch_warnings():
156 with warnings.catch_warnings():
169 with warnings.catch_warnings():
183 with warnings.catch_warnings():
221 with warnings.catch_warnings():
[all …]
Dtest_source_encoding.py108 with warnings.catch_warnings():
164 with warnings.catch_warnings():
Dtest_finder.py209 with warnings.catch_warnings():
225 with warnings.catch_warnings():
/external/python/cpython3/Lib/test/test_importlib/
Dtest_util.py128 with warnings.catch_warnings():
134 with warnings.catch_warnings():
262 with warnings.catch_warnings():
304 with warnings.catch_warnings():
337 with warnings.catch_warnings():
345 with warnings.catch_warnings():
353 with warnings.catch_warnings():
589 with warnings.catch_warnings():
595 with warnings.catch_warnings():
616 with warnings.catch_warnings():
[all …]
Dtest_api.py112 with warnings.catch_warnings():
125 with warnings.catch_warnings():
141 with warnings.catch_warnings():
150 with warnings.catch_warnings():
160 with warnings.catch_warnings():
167 with warnings.catch_warnings():
/external/tensorflow/tensorflow/python/framework/
Derrors_test.py88 with warnings.catch_warnings(record=True) as w:
97 with warnings.catch_warnings(record=True) as w:
105 with warnings.catch_warnings(record=True) as w:
/external/python/cpython3/Lib/test/
Dtest_string_literals.py115 with warnings.catch_warnings(record=True) as w:
122 with warnings.catch_warnings(record=True) as w:
164 with warnings.catch_warnings(record=True) as w:
171 with warnings.catch_warnings(record=True) as w:
Dtest_platform.py269 with warnings.catch_warnings():
354 with warnings.catch_warnings():
367 with warnings.catch_warnings():
387 with warnings.catch_warnings():
Dtest_imp.py11 with warnings.catch_warnings():
171 with warnings.catch_warnings():
176 with warnings.catch_warnings():
188 with warnings.catch_warnings():
Dtest_global.py56 with warnings.catch_warnings():
/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest___package__.py53 with warnings.catch_warnings():
65 with warnings.catch_warnings():
Dtest_relative_imports.py69 with warnings.catch_warnings():
210 with warnings.catch_warnings():
Dtest_fromlist.py152 warnings.catch_warnings():
162 warnings.catch_warnings():
/external/python/cpython2/Misc/NEWS.d/
D2.6rc1.rst208 Further warnings.catch_warnings() cleanup to prevent silent misbehaviour
228 Clean up the API for warnings.catch_warnings() by having it return a list or
323 Moved test.test_support.catch_warning() to warnings.catch_warnings() along
324 with some API cleanup. Expanding the tests for catch_warnings() also led to
460 warnings.catch_warnings() that makes it easier to check that expected
479 Move test_py3kwarn over to the new API for catch_warnings().
/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.
/external/python/cpython3/Lib/unittest/test/testmock/
Dsupport.py22 with catch_warnings(record=True) as ws:
/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():
/external/python/cpython3/Lib/test/test_importlib/extension/
Dtest_finder.py18 with warnings.catch_warnings():
/external/python/cpython3/Lib/unittest/test/
D_test_warnings.py64 with warnings.catch_warnings(record=True) as ws:

12345