Searched refs:catch_warnings (Results 1 – 25 of 125) sorted by relevance
12345
/external/python/cpython3/Lib/test/test_warnings/ |
D | __init__.py | 99 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/ |
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, 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 …]
|
D | test_global.py | 47 with warnings.catch_warnings():
|
/external/python/cpython3/Lib/test/test_importlib/frozen/ |
D | test_loader.py | 65 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/ |
D | test_file_loader.py | 45 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 …]
|
D | test_source_encoding.py | 108 with warnings.catch_warnings(): 164 with warnings.catch_warnings():
|
D | test_finder.py | 209 with warnings.catch_warnings(): 225 with warnings.catch_warnings():
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | test_util.py | 128 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 …]
|
D | test_api.py | 112 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/ |
D | errors_test.py | 88 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/ |
D | test_string_literals.py | 115 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:
|
D | test_platform.py | 269 with warnings.catch_warnings(): 354 with warnings.catch_warnings(): 367 with warnings.catch_warnings(): 387 with warnings.catch_warnings():
|
D | test_imp.py | 11 with warnings.catch_warnings(): 171 with warnings.catch_warnings(): 176 with warnings.catch_warnings(): 188 with warnings.catch_warnings():
|
D | test_global.py | 56 with warnings.catch_warnings():
|
/external/python/cpython3/Lib/test/test_importlib/import_/ |
D | test___package__.py | 53 with warnings.catch_warnings(): 65 with warnings.catch_warnings():
|
D | test_relative_imports.py | 69 with warnings.catch_warnings(): 210 with warnings.catch_warnings():
|
D | test_fromlist.py | 152 warnings.catch_warnings(): 162 warnings.catch_warnings():
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.6rc1.rst | 208 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/ |
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.
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | support.py | 22 with catch_warnings(record=True) as ws:
|
/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():
|
/external/python/cpython3/Lib/test/test_importlib/extension/ |
D | test_finder.py | 18 with warnings.catch_warnings():
|
/external/python/cpython3/Lib/unittest/test/ |
D | _test_warnings.py | 64 with warnings.catch_warnings(record=True) as ws:
|
12345