/aosp_15_r20/external/python/cpython3/Doc/library/ |
D | warnings.rst | 1 :mod:`warnings` --- Warning control 4 .. module:: warnings 7 **Source code:** :source:`Lib/warnings.py` 9 .. index:: single: warnings 18 Python programmers issue warnings by calling the :func:`warn` function defined 23 can be changed flexibly, from ignoring all warnings to turning them into 24 exceptions. The disposition of warnings can vary based on the :ref:`warning category 44 :func:`logging.captureWarnings` allows you to handle all warnings with 54 This categorization is useful to be able to filter out groups of warnings. 58 documented here, because conceptually they belong to the warnings mechanism. [all …]
|
/aosp_15_r20/external/python/cpython2/Doc/library/ |
D | warnings.rst | 1 :mod:`warnings` --- Warning control 4 .. index:: single: warnings 6 .. module:: warnings 12 **Source code:** :source:`Lib/warnings.py` 21 Python programmers issue warnings by calling the :func:`warn` function defined 26 can be changed flexibly, from ignoring all warnings to turning them into 27 exceptions. The disposition of warnings can vary based on the warning category 47 :func:`logging.captureWarnings` allows you to handle all warnings with 57 This categorization is useful to be able to filter out groups of warnings. The 58 following warnings category classes are currently defined: [all …]
|
D | test.rst | 299 A convenience wrapper for :func:`warnings.catch_warnings()` that makes it 301 equivalent to calling ``warnings.catch_warnings(record=True)`` with 302 :meth:`warnings.simplefilter` set to ``always`` and with the option to 308 it checks to make sure the warnings are as expected: each specified filter 309 must match at least one of the warnings raised by the enclosed code or the 310 test fails, and if any warnings are raised that do not match any of the 318 In this case all warnings are caught and no errors are raised. 321 returned. The underlying warnings list from 322 :func:`~warnings.catch_warnings` is available via the recorder object's 323 :attr:`warnings` attribute. As a convenience, the attributes of the object [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/test/support/ |
D | warnings_helper.py | 6 import warnings 11 with warnings.catch_warnings(): 12 warnings.simplefilter('ignore', category=DeprecationWarning) 20 with warnings.catch_warnings(record=True) as warns: 21 warnings.simplefilter('always', SyntaxWarning) 38 with warnings.catch_warnings(record=True) as warns: 39 warnings.simplefilter('error', SyntaxWarning) 42 # No warnings are leaked when a SyntaxError is raised. 47 """Decorator to suppress warnings. 49 Use of context managers to hide warnings make diffs [all …]
|
/aosp_15_r20/build/make/tools/warn/ |
H A D | html_writer.py | 47 # Warnings: warning_records 67 # Report files with this number of warnings or more. 69 # Report files/directories with this percentage of total warnings or more. 142 """Creates warnings s.t. 144 warnings[p][s] is as specified in above docs. 151 2D warnings array where warnings[p][s] is # of warnings in project name p of 154 warnings = {p: {s.value: 0 for s in Severity.levels} for p in project_names} 158 warnings[project][value] += pattern['projects'][project] 159 return warnings 162 def get_total_by_project(warnings, project_names): argument [all …]
|
/aosp_15_r20/external/python/cpython3/Tools/scripts/ |
D | fixdiv.py | 5 To use this tool, first run `python -Qwarnall yourscript.py 2>warnings'. 8 `warnings'. The warnings look like this: 12 The warnings are written to stderr, so you must use `2>' for the I/O 17 The warnings are not limited to the script; modules imported by the 18 script may also trigger warnings. In fact a useful technique is to 22 Then run `python fixdiv.py warnings'. This first reads the warnings, 23 looking for classic division warnings, and sorts them by file name and 25 it parses the file and tries to match the warnings up to the division 58 A / operator was found for which no warnings were seen. This could 68 - 'Phantom ... warnings for line N', line marked by '*': [all …]
|
/aosp_15_r20/external/python/cpython2/Tools/scripts/ |
D | fixdiv.py | 5 To use this tool, first run `python -Qwarnall yourscript.py 2>warnings'. 8 `warnings'. The warnings look like this: 12 The warnings are written to stderr, so you must use `2>' for the I/O 17 The warnings are not limited to the script; modules imported by the 18 script may also trigger warnings. In fact a useful technique is to 22 Then run `python fixdiv.py warnings'. This first reads the warnings, 23 looking for classic division warnings, and sorts them by file name and 25 it parses the file and tries to match the warnings up to the division 58 A / operator was found for which no warnings were seen. This could 68 - 'Phantom ... warnings for line N', line marked by '*': [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/test/test_warnings/ |
D | __init__.py | 17 import warnings as original_warnings 20 py_warnings = import_helper.import_fresh_module('warnings', 22 c_warnings = import_helper.import_fresh_module('warnings', 29 """Use a specific warnings implementation in warning_tests.""" 40 original_warnings = warning_tests.warnings 45 warning_tests.warnings = module 48 warning_tests.warnings = original_warnings 61 self.old_unittest_module = unittest.case.warnings 70 # The 'warnings' module must be explicitly set so that the proper 71 # interaction between _warnings and 'warnings' can be controlled. [all …]
|
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/unittest/test/ |
H A D | _test_warnings.py | 4 This module has a number of tests that raise different kinds of warnings. 5 When the tests are run, the warnings are caught and their messages are printed 7 unittest.main to affect the behavior of warnings. 9 combinations of warnings args and -W flags and check that the output is correct. 15 import warnings 18 warnings.warn('rw', RuntimeWarning) 21 # unittest warnings will be printed at most once per type (max one message 36 # these warnings are normally silenced, but they are printed in unittest 38 warnings.warn('dw', DeprecationWarning) 39 warnings.warn('dw', DeprecationWarning) [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/unittest/test/ |
D | _test_warnings.py | 4 This module has a number of tests that raise different kinds of warnings. 5 When the tests are run, the warnings are caught and their messages are printed 7 unittest.main to affect the behavior of warnings. 9 combinations of warnings args and -W flags and check that the output is correct. 15 import warnings 18 warnings.warn('rw', RuntimeWarning) 21 # unittest warnings will be printed at most once per type (max one message 36 # these warnings are normally silenced, but they are printed in unittest 38 warnings.warn('dw', DeprecationWarning) 39 warnings.warn('dw', DeprecationWarning) [all …]
|
/aosp_15_r20/external/google-cloud-java/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ |
H A D | ImportDocumentsResponse.java | 79 * Includes details about skipped documents or any other warnings. 82 * <code>repeated .google.rpc.Status warnings = 1;</code> 92 * Includes details about skipped documents or any other warnings. 95 * <code>repeated .google.rpc.Status warnings = 1;</code> 105 * Includes details about skipped documents or any other warnings. 108 * <code>repeated .google.rpc.Status warnings = 1;</code> 118 * Includes details about skipped documents or any other warnings. 121 * <code>repeated .google.rpc.Status warnings = 1;</code> 131 * Includes details about skipped documents or any other warnings. 134 * <code>repeated .google.rpc.Status warnings = 1;</code> [all …]
|
/aosp_15_r20/external/google-cloud-java/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ |
H A D | ImportDocumentsResponse.java | 79 * Includes details about skipped documents or any other warnings. 82 * <code>repeated .google.rpc.Status warnings = 1;</code> 92 * Includes details about skipped documents or any other warnings. 95 * <code>repeated .google.rpc.Status warnings = 1;</code> 105 * Includes details about skipped documents or any other warnings. 108 * <code>repeated .google.rpc.Status warnings = 1;</code> 118 * Includes details about skipped documents or any other warnings. 121 * <code>repeated .google.rpc.Status warnings = 1;</code> 131 * Includes details about skipped documents or any other warnings. 134 * <code>repeated .google.rpc.Status warnings = 1;</code> [all …]
|
/aosp_15_r20/prebuilts/cmake/linux-x86/share/cmake-3.22/Help/manual/ |
D | OPTIONS_BUILD.txt | 88 Suppress developer warnings. 90 Suppress warnings that are meant for the author of the 92 deprecation warnings. 95 Enable developer warnings. 97 Enable warnings that are meant for the author of the ``CMakeLists.txt`` 98 files. By default this will also turn on deprecation warnings. 101 Make developer warnings errors. 103 Make warnings that are meant for the author of the ``CMakeLists.txt`` files 104 errors. By default this will also turn on deprecated warnings as errors. 107 Make developer warnings not errors. [all …]
|
/aosp_15_r20/external/google-cloud-java/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ |
H A D | Warnings.java | 27 * Protobuf type {@code google.cloud.compute.v1.Warnings} 29 public final class Warnings extends com.google.protobuf.GeneratedMessageV3 class 31 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.Warnings) 34 // Use Warnings.newBuilder() to construct. 35 private Warnings(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { in Warnings() method in Warnings 39 private Warnings() { in Warnings() method in Warnings 48 return new Warnings(); in newInstance() 67 com.google.cloud.compute.v1.Warnings.class, in internalGetFieldAccessorTable() 68 com.google.cloud.compute.v1.Warnings.Builder.class); in internalGetFieldAccessorTable() 78 * Protobuf enum {@code google.cloud.compute.v1.Warnings.Code} [all …]
|
/aosp_15_r20/external/python/cachetools/tests/ |
D | test_deprecated.py | 2 import warnings 7 with warnings.catch_warnings(record=True) as w: 8 warnings.simplefilter("always") 16 with warnings.catch_warnings(record=True) as w: 17 warnings.simplefilter("always") 25 with warnings.catch_warnings(record=True) as w: 26 warnings.simplefilter("always") 34 with warnings.catch_warnings(record=True) as w: 35 warnings.simplefilter("always") 43 with warnings.catch_warnings(record=True) as w: [all …]
|
/aosp_15_r20/external/python/cpython2/Lib/test/ |
D | test_warnings.py | 13 import warnings as original_warnings 15 py_warnings = test_support.import_fresh_module('warnings', blocked=['_warnings']) 16 c_warnings = test_support.import_fresh_module('warnings', fresh=['_warnings']) 20 """Use a specific warnings implementation in warning_tests.""" 31 original_warnings = warning_tests.warnings 36 warning_tests.warnings = module 39 warning_tests.warnings = original_warnings 56 # The 'warnings' module must be explicitly set so that the proper 57 # interaction between _warnings and 'warnings' can be controlled. 58 sys.modules['warnings'] = self.module [all …]
|
/aosp_15_r20/external/clang/include/clang/Basic/ |
H A D | DiagnosticGroups.td | 141 // Warnings for C++1y code which is not compatible with prior C++ standards. 161 // Warnings for C++11 features which are Extensions in C++98 mode. 322 def PoundWarning : DiagGroup<"#warnings">; 390 // Preprocessor warnings. 395 // Just silence warnings about -Wstrict-aliasing for now. 401 // Just silence warnings about -Wstrict-overflow for now. 552 // Populate -Waddress with warnings from other groups. 557 // -Widiomatic-parentheses contains warnings about 'idiomatic' 560 // do not want these warnings. 571 // -Wconversion has its own warnings, but we split a few out for [all …]
|
/aosp_15_r20/frameworks/base/tools/lint/framework/checks/src/test/java/com/google/android/lint/parcel/ |
H A D | SaferParcelCheckerTest.kt | 67 0 errors, 1 warnings in getDetector() 91 .expect("No warnings.") in testParcelDoesNotDetectSafeReadSerializable() 118 0 errors, 1 warnings in testParcelDetectUnsafeReadArrayList() 142 .expect("No warnings.") in testParcelDoesNotDetectSafeReadArrayList() 172 0 errors, 1 warnings in testParcelDetectUnsafeReadList() 198 .expect("No warnings.") in testDParceloesNotDetectSafeReadList() 226 0 errors, 1 warnings in testParcelDetectUnsafeReadParcelable() 250 .expect("No warnings.") in testParcelDoesNotDetectSafeReadParcelable() 280 0 errors, 1 warnings in testParcelDetectUnsafeReadParcelableList() 307 .expect("No warnings.") in testParcelDoesNotDetectSafeReadParcelableList() [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/test/test_importlib/import_/ |
D | test_path.py | 11 import warnings 77 with warnings.catch_warnings(record=True) as w: 78 warnings.simplefilter('always', ImportWarning) 79 warnings.simplefilter('ignore', DeprecationWarning) 127 with warnings.catch_warnings(): 128 warnings.simplefilter("ignore", ImportWarning) 134 with warnings.catch_warnings(): 135 warnings.simplefilter("ignore", ImportWarning) 147 with warnings.catch_warnings(): 148 warnings.simplefilter("ignore", ImportWarning) [all …]
|
D | test___package__.py | 8 import warnings 53 with warnings.catch_warnings(): 54 warnings.simplefilter("ignore") 65 with warnings.catch_warnings(): 66 warnings.simplefilter("ignore") 102 with warnings.catch_warnings(): 103 warnings.simplefilter("ignore", ImportWarning) 107 with warnings.catch_warnings(): 108 warnings.simplefilter("ignore", ImportWarning) 169 with warnings.catch_warnings(): [all …]
|
/aosp_15_r20/art/tools/ |
H A D | findbuildbotwarnings.py | 17 """Outputs the warnings that are common to all builders. 19 Suppressed tests that are nonetheless passing are output as warnings 20 by vogar. Any tests that generate warnings in every builder are good 30 # The buildbot step to check for warnings 35 # Dict from builder+build_num combination to the list of warnings 37 warnings = collections.defaultdict(list) 72 # warnings summary 75 while not stdio[i].startswith('Warnings summary:'): 77 i += 1 # Ignore the "Warnings summary:" line 79 warnings['%s:%d' % (builder_name, build_num)].append(stdio[i]) [all …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/config/test/ |
D | Jamfile.v2 | 81 …t>msvc:<link>static <toolset>msvc:<warnings-as-errors>on <toolset>gcc:<warnings-as-errors>on <tool… 82 …ut <threading>multi <toolset>msvc:<warnings-as-errors>on <toolset>gcc:<warnings-as-errors>on <tool… 83 …un_output <rtti>off <toolset>msvc:<warnings-as-errors>on <toolset>gcc:<warnings-as-errors>on <tool… 104 …toolset>clang:<cxxflags>"-std=c++11 -Wimplicit-fallthrough" <warnings-as-errors>on <warnings>all ]… 106 …[ run cstdint_test.cpp : : : <warnings>all <toolset>gcc:<cxxflags>"-Wno-long-long -Wextra" <toolse… 107 …[ run cstdint_test2.cpp : : : <warnings>all <toolset>gcc:<cxxflags>"-Wno-long-long -Wextra" <tools… 108 [ compile cstdint_include_test.cpp : <warnings>all <toolset>gcc:<cxxflags>-Wextra ] 117 …<toolset>clang:<cxxflags>"-std=c++11 -Wimplicit-fallthrough" <warnings-as-errors>on <warnings>all ;
|
/aosp_15_r20/external/google-cloud-java/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/ |
H A D | TranslateQueryResponse.java | 264 * The list of warnings encountered during the translation, if present, 268 * <code>repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; 280 * The list of warnings encountered during the translation, if present, 284 * <code>repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; 297 * The list of warnings encountered during the translation, if present, 301 * <code>repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; 312 * The list of warnings encountered during the translation, if present, 316 * <code>repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; 327 * The list of warnings encountered during the translation, if present, 331 * <code>repeated .google.cloud.bigquery.migration.v2alpha.SqlTranslationWarning warnings = 3; [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/unittest/ |
D | main.py | 6 import warnings 63 failfast = catchbreak = buffer = progName = warnings = testNamePatterns = None 69 buffer=None, warnings=None, *, tb_locals=False): argument 85 if warnings is None and not sys.warnoptions: 87 # print them anyway unless other warnings settings are 88 # specified by the warnings arg or the -W python flag 89 self.warnings = 'default' 91 # here self.warnings is set either to the value passed 92 # to the warnings args or to None. 93 # If the user didn't pass a value self.warnings will [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/unittest/ |
D | main.py | 6 import warnings 63 failfast = catchbreak = buffer = progName = warnings = testNamePatterns = None 69 buffer=None, warnings=None, *, tb_locals=False): argument 85 if warnings is None and not sys.warnoptions: 87 # print them anyway unless other warnings settings are 88 # specified by the warnings arg or the -W python flag 89 self.warnings = 'default' 91 # here self.warnings is set either to the value passed 92 # to the warnings args or to None. 93 # If the user didn't pass a value self.warnings will [all …]
|