Home
last modified time | relevance | path

Searched full:warnings (Results 1 – 25 of 6315) sorted by relevance

12345678910>>...253

/external/python/cpython3/Lib/test/support/
Dwarnings_helper.py6 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 …]
/external/python/cpython3/Lib/unittest/test/
D_test_warnings.py4 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 …]
/external/python/cpython3/Doc/library/
Dwarnings.rst1 :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 …]
/external/python/cpython2/Doc/library/
Dwarnings.rst1 :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 …]
Dtest.rst299 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 …]
/external/python/cpython2/Tools/scripts/
Dfixdiv.py5 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 …]
/external/python/cpython3/Tools/scripts/
Dfixdiv.py5 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 …]
/external/python/cachetools/tests/
Dtest_deprecated.py2 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 …]
/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest___package__.py8 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 …]
Dtest_api.py7 import warnings
105 with warnings.catch_warnings():
106 warnings.simplefilter("ignore", ImportWarning)
110 with warnings.catch_warnings():
111 warnings.simplefilter("ignore", ImportWarning)
115 with warnings.catch_warnings():
116 warnings.simplefilter("ignore", ImportWarning)
120 with warnings.catch_warnings():
121 warnings.simplefilter("ignore", ImportWarning)
125 with warnings.catch_warnings():
[all …]
Dtest_path.py11 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 …]
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_warning.py1 '''Test warnings replacement in PyShell.py and run.py.
6 Make sure warnings module is left unaltered (http://bugs.python.org/issue18081).
12 import warnings
14 showwarning = warnings.showwarning
25 Warning (from warnings module):
36 self.assertIs(warnings.showwarning, showwarning)
38 self.assertIs(warnings.showwarning, run.idle_showwarning_subproc)
40 self.assertIs(warnings.showwarning, showwarning)
53 self.assertIs(warnings.showwarning, showwarning)
55 self.assertIs(warnings.showwarning, shell.idle_showwarning)
[all …]
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_warning.py1 '''Test warnings replacement in pyshell.py and run.py.
6 Make sure warnings module is left unaltered (http://bugs.python.org/issue18081).
12 import warnings
15 showwarning = warnings.showwarning
23 Warning (from warnings module):
35 self.assertIs(warnings.showwarning, showwarning)
37 self.assertIs(warnings.showwarning, run.idle_showwarning_subproc)
39 self.assertIs(warnings.showwarning, showwarning)
53 self.assertIs(warnings.showwarning, showwarning)
55 self.assertIs(warnings.showwarning, shell.idle_showwarning)
[all …]
/external/google-cloud-java/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/
DImportDocumentsResponse.java79 * 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 …]
DImportDocumentsResponseOrBuilder.java30 * Includes details about skipped documents or any other warnings.
33 * <code>repeated .google.rpc.Status warnings = 1;</code>
40 * Includes details about skipped documents or any other warnings.
43 * <code>repeated .google.rpc.Status warnings = 1;</code>
50 * Includes details about skipped documents or any other warnings.
53 * <code>repeated .google.rpc.Status warnings = 1;</code>
60 * Includes details about skipped documents or any other warnings.
63 * <code>repeated .google.rpc.Status warnings = 1;</code>
70 * Includes details about skipped documents or any other warnings.
73 * <code>repeated .google.rpc.Status warnings = 1;</code>
/external/google-cloud-java/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/
DImportDocumentsResponse.java79 * 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 …]
DImportDocumentsResponseOrBuilder.java30 * Includes details about skipped documents or any other warnings.
33 * <code>repeated .google.rpc.Status warnings = 1;</code>
40 * Includes details about skipped documents or any other warnings.
43 * <code>repeated .google.rpc.Status warnings = 1;</code>
50 * Includes details about skipped documents or any other warnings.
53 * <code>repeated .google.rpc.Status warnings = 1;</code>
60 * Includes details about skipped documents or any other warnings.
63 * <code>repeated .google.rpc.Status warnings = 1;</code>
70 * Includes details about skipped documents or any other warnings.
73 * <code>repeated .google.rpc.Status warnings = 1;</code>
/external/pdfium/core/fxcrt/
Dfx_memcpy_wrappers_unittest.cpp10 // Test passes if it does not trigger UBSAN warnings. in TEST()
15 // Test passes if it does not trigger UBSAN warnings. in TEST()
20 // Test passes if it does not trigger UBSAN warnings. in TEST()
25 // Test passes if it does not trigger UBSAN warnings. in TEST()
30 // Test passes if it does not trigger UBSAN warnings. in TEST()
35 // Test passes if it does not trigger UBSAN warnings. in TEST()
40 // Test passes if it does not trigger UBSAN warnings. in TEST()
45 // Test passes if it does not trigger UBSAN warnings. in TEST()
50 // Test passes if it does not trigger UBSAN warnings. in TEST()
55 // Test passes if it does not trigger UBSAN warnings. in TEST()
/external/sdv/vsomeip/third_party/boost/config/test/
DJamfile.v281 …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 ;
/external/python/cpython3/Lib/test/test_warnings/
D__init__.py17 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 …]
/external/python/cpython3/Lib/unittest/
Dmain.py6 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 …]
/external/sdv/vsomeip/third_party/boost/endian/test/
DJamfile.v216 <warnings>all
20 <toolset>msvc:<warnings-as-errors>on
25 <toolset>gcc:<warnings-as-errors>on
28 <toolset>clang:<warnings-as-errors>on
54 local allow-warnings =
55 "-<toolset>msvc:<warnings-as-errors>on"
56 "-<toolset>gcc:<warnings-as-errors>on"
57 "-<toolset>clang:<warnings-as-errors>on" ;
59 compile spirit_conflict_test.cpp : $(allow-warnings) ;
/external/python/cpython3/Lib/test/libregrtest/
Dsave_env.py55 'warnings.filters', 'asyncore.socket_map',
62 'files', 'locale', 'warnings.showwarning',
156 warnings = self.try_get_module('warnings')
157 return id(warnings.filters), warnings.filters, warnings.filters[:]
159 warnings = self.get_module('warnings')
160 warnings.filters = saved_filters[1]
161 warnings.filters[:] = saved_filters[2]
285 warnings = self.try_get_module('warnings')
286 return warnings.showwarning
288 warnings = self.get_module('warnings')
[all …]
/external/sdv/vsomeip/third_party/boost/regex/test/
DJamfile.v216 <warnings>all
213 : <toolset>msvc:<warnings>all <toolset>msvc:<warnings-as-errors>on
214 <toolset>gcc:<warnings>all <toolset>gcc:<warnings-as-errors>on
215 <toolset>clang:<warnings>all <toolset>clang:<warnings-as-errors>on ;
218 : <toolset>msvc:<warnings>all <toolset>msvc:<warnings-as-errors>on
219 <toolset>gcc:<warnings>all <toolset>gcc:<warnings-as-errors>on
220 <toolset>clang:<warnings>all <toolset>clang:<warnings-as-errors>on
/external/libpcap/
Ddiag-control.h51 * Suppress "enum value not explicitly handled in switch" warnings.
71 * Suppress "switch statement has only a default case" warnings.
87 * Suppress Flex, narrowing, and deprecation warnings.
94 * Suppress -Wdocumentation warnings; GCC doesn't support -Wdocumentation,
114 * Suppress the only narrowing warnings you get from Clang.
124 * Suppress deprecation warnings.
139 * code warnings.
151 * Suppress narrowing warnings.
161 * Suppress deprecation warnings.
185 * GCC currently doesn't issue any narrowing warnings.
[all …]

12345678910>>...253