Home
last modified time | relevance | path

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

1234

/third_party/python/Lib/test/test_warnings/
D__init__.py109 with original_warnings.catch_warnings(module=self.module) as w:
116 with original_warnings.catch_warnings(module=self.module) as w:
134 with original_warnings.catch_warnings(record=True,
143 with original_warnings.catch_warnings(record=True,
156 with original_warnings.catch_warnings(record=True,
171 with original_warnings.catch_warnings(record=True,
191 with original_warnings.catch_warnings(record=True,
207 with original_warnings.catch_warnings(record=True,
219 with original_warnings.catch_warnings(record=True,
236 with original_warnings.catch_warnings(record=True,
[all …]
/third_party/python/Lib/test/test_importlib/import_/
Dtest___package__.py53 with warnings.catch_warnings():
65 with warnings.catch_warnings():
102 with warnings.catch_warnings():
107 with warnings.catch_warnings():
169 with warnings.catch_warnings():
174 with warnings.catch_warnings():
179 with warnings.catch_warnings():
Dtest_api.py105 with warnings.catch_warnings():
110 with warnings.catch_warnings():
115 with warnings.catch_warnings():
120 with warnings.catch_warnings():
125 with warnings.catch_warnings():
130 with warnings.catch_warnings():
Dtest_path.py77 with warnings.catch_warnings(record=True) as w:
127 with warnings.catch_warnings():
134 with warnings.catch_warnings():
147 with warnings.catch_warnings():
154 with warnings.catch_warnings():
220 with warnings.catch_warnings():
262 with warnings.catch_warnings():
282 with warnings.catch_warnings():
Dtest_caching.py67 with warnings.catch_warnings():
77 with warnings.catch_warnings():
89 with warnings.catch_warnings():
Dtest_meta_path.py41 with warnings.catch_warnings(record=True) as w:
106 with warnings.catch_warnings():
111 with warnings.catch_warnings():
Dtest___loader__.py49 with warnings.catch_warnings():
63 with warnings.catch_warnings():
Dtest_relative_imports.py69 with warnings.catch_warnings():
211 with warnings.catch_warnings():
Dtest_fromlist.py152 warnings.catch_warnings():
162 warnings.catch_warnings():
/third_party/python/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():
167 with warnings.catch_warnings():
/third_party/python/Lib/test/support/
Dwarnings_helper.py12 with warnings.catch_warnings(record=True) as warns:
30 with warnings.catch_warnings(record=True) as warns:
47 with warnings.catch_warnings():
116 with warnings.catch_warnings(record=True) as warns:
155 with warnings.catch_warnings(record=True) as w:
/third_party/python/Lib/test/test_importlib/builtin/
Dtest_finder.py62 with warnings.catch_warnings():
76 with warnings.catch_warnings():
84 with warnings.catch_warnings():
/third_party/python/Lib/
Dgettext.py283 with warnings.catch_warnings():
305 with warnings.catch_warnings():
615 with warnings.catch_warnings():
678 with warnings.catch_warnings():
684 with warnings.catch_warnings():
706 with warnings.catch_warnings():
716 with warnings.catch_warnings():
748 with warnings.catch_warnings():
760 with warnings.catch_warnings():
/third_party/python/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():
/third_party/python/Lib/test/test_importlib/
Dtest_util.py129 with warnings.catch_warnings():
135 with warnings.catch_warnings():
263 with warnings.catch_warnings():
305 with warnings.catch_warnings():
338 with warnings.catch_warnings():
346 with warnings.catch_warnings():
354 with warnings.catch_warnings():
590 with warnings.catch_warnings():
596 with warnings.catch_warnings():
617 with warnings.catch_warnings():
[all …]
Dtest_api.py114 with warnings.catch_warnings():
127 with warnings.catch_warnings():
143 with warnings.catch_warnings():
152 with warnings.catch_warnings():
163 with warnings.catch_warnings():
171 with warnings.catch_warnings():
Dtest_windows.py88 with warnings.catch_warnings():
95 with warnings.catch_warnings():
104 with warnings.catch_warnings():
Dtest_abc.py223 with warnings.catch_warnings():
465 with warnings.catch_warnings():
482 with warnings.catch_warnings():
596 with warnings.catch_warnings():
848 with warnings.catch_warnings():
851 with warnings.catch_warnings():
862 with warnings.catch_warnings():
866 with warnings.catch_warnings():
/third_party/python/Lib/test/test_importlib/extension/
Dtest_loader.py1 from warnings import catch_warnings
25 with warnings.catch_warnings():
31 with warnings.catch_warnings():
104 with warnings.catch_warnings():
/third_party/python/Lib/test/
Dtest_string_literals.py115 with warnings.catch_warnings(record=True) as w:
122 with warnings.catch_warnings(record=True) as w:
165 with warnings.catch_warnings(record=True) as w:
172 with warnings.catch_warnings(record=True) as w:
Dtest_imp.py13 with warnings.catch_warnings():
173 with warnings.catch_warnings():
178 with warnings.catch_warnings():
190 with warnings.catch_warnings():
Dtest_global.py57 cm = warnings.catch_warnings()
/third_party/python/Doc/library/
Dwarnings.rst294 the warning using the :class:`catch_warnings` context manager::
301 with warnings.catch_warnings():
309 application. If two or more threads use the :class:`catch_warnings` context
319 To test warnings raised by code, use the :class:`catch_warnings` context
329 with warnings.catch_warnings(record=True) as w:
350 application. If two or more threads use the :class:`catch_warnings` context
494 .. class:: catch_warnings(*, record=False, module=None)
512 The :class:`catch_warnings` manager works by replacing and

1234