Home
last modified time | relevance | path

Searched refs:warnings (Results 1 – 25 of 2196) sorted by relevance

12345678910>>...88

/external/python/cpython3/Lib/unittest/test/
D_test_warnings.py15 import warnings
18 warnings.warn('rw', RuntimeWarning)
38 warnings.warn('dw', DeprecationWarning)
39 warnings.warn('dw', DeprecationWarning)
40 warnings.warn('dw', DeprecationWarning)
43 warnings.warn('iw', ImportWarning)
44 warnings.warn('iw', ImportWarning)
45 warnings.warn('iw', ImportWarning)
49 warnings.warn('uw')
50 warnings.warn('uw')
[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/
Dgettext.py169 import warnings
170 warnings.warn('Plural value must be an integer, got %s' %
278 import warnings
279 warnings.warn('lgettext() is deprecated, use gettext() instead',
283 with warnings.catch_warnings():
284 warnings.filterwarnings('ignore', r'.*\blgettext\b.*',
300 import warnings
301 warnings.warn('lngettext() is deprecated, use ngettext() instead',
305 with warnings.catch_warnings():
306 warnings.filterwarnings('ignore', r'.*\blngettext\b.*',
[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 …]
Dtest_caching.py6 import warnings
67 with warnings.catch_warnings():
68 warnings.simplefilter("ignore", ImportWarning)
77 with warnings.catch_warnings():
78 warnings.simplefilter("ignore", ImportWarning)
89 with warnings.catch_warnings():
90 warnings.simplefilter("ignore", ImportWarning)
/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/cpython3/Lib/test/support/
Dwarnings_helper.py5 import warnings
12 with warnings.catch_warnings(record=True) as warns:
13 warnings.simplefilter('always', SyntaxWarning)
30 with warnings.catch_warnings(record=True) as warns:
31 warnings.simplefilter('error', SyntaxWarning)
47 with warnings.catch_warnings():
48 warnings.simplefilter('ignore', category=category)
65 elif attr in warnings.WarningMessage._WARNING_DETAILS:
70 def warnings(self): member in WarningsRecorder
116 with warnings.catch_warnings(record=True) as warns:
[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 …]
/external/python/cpython2/Tools/scripts/
Dfixdiv.py158 warnings = readwarnings(args[0])
159 if warnings is None:
161 files = warnings.keys()
168 x = process(filename, warnings[filename])
187 warnings = {}
198 list = warnings.get(filename)
200 warnings[filename] = list = []
203 return warnings
229 warnings = []
231 warnings.append(list[index])
[all …]
/external/python/cpython3/Tools/scripts/
Dfixdiv.py158 warnings = readwarnings(args[0])
159 if warnings is None:
161 files = list(warnings.keys())
168 x = process(filename, warnings[filename])
182 warnings = {}
199 list = warnings.get(filename)
201 warnings[filename] = list = []
203 return warnings
230 warnings = []
232 warnings.append(list[index])
[all …]
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_warning.py12 import warnings
14 showwarning = warnings.showwarning
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)
57 self.assertIs(warnings.showwarning, showwarning)
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_warning.py12 import warnings
15 showwarning = warnings.showwarning
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)
57 self.assertIs(warnings.showwarning, showwarning)
/external/python/cpython3/Lib/test/test_importlib/frozen/
Dtest_loader.py9 import warnings
65 with warnings.catch_warnings():
66 warnings.simplefilter('ignore', DeprecationWarning)
96 with warnings.catch_warnings():
97 warnings.simplefilter('ignore', DeprecationWarning)
110 with warnings.catch_warnings():
111 warnings.simplefilter('ignore', DeprecationWarning)
129 with warnings.catch_warnings():
130 warnings.simplefilter('ignore', DeprecationWarning)
146 with warnings.catch_warnings():
[all …]
/external/openthread/third_party/mbedtls/repo/scripts/
Drename.pl79 my %warnings;
115 $warnings{$filename} = [] unless $warnings{$filename};
116 push @{ $warnings{$filename} }, $line;
127 if( %warnings ) {
129 for my $filename (sort keys %warnings) {
131 print for @{ $warnings{$filename} };
/external/desugar/java/com/google/devtools/common/options/
DOptionValueDescription.java60 ParsedOptionDescription parsedOption, List<String> warnings) throws OptionsParsingException; in addOptionInstance() argument
131 ExpansionBundle addOptionInstance(ParsedOptionDescription parsedOption, List<String> warnings) { in addOptionInstance() argument
175 ExpansionBundle addOptionInstance(ParsedOptionDescription parsedOption, List<String> warnings) in addOptionInstance() argument
206 warnings.add( in addOptionInstance()
212 warnings.add( in addOptionInstance()
218 warnings.add( in addOptionInstance()
226 warnings.add( in addOptionInstance()
233 warnings.add( in addOptionInstance()
302 ExpansionBundle addOptionInstance(ParsedOptionDescription parsedOption, List<String> warnings) in addOptionInstance() argument
361 ExpansionBundle addOptionInstance(ParsedOptionDescription parsedOption, List<String> warnings) { in addOptionInstance() argument
[all …]
/external/toolchain-utils/cwp/cr-os/
Dfetch_gn_descs_test.py90 warnings, desc_json = fetch_gn_descs._parse_gn_desc_output(gn_desc)
92 warnings,
112 warnings, desc_json = fetch_gn_descs._parse_gn_desc_output(gn_desc)
113 self.assertEqual(warnings, "")
117 warnings, desc_json = fetch_gn_descs._parse_gn_desc_output(gn_desc)
118 self.assertEqual(warnings, "")
/external/openthread/third_party/nlbuild-autotools/repo/autoconf/m4/
Dnl_enable_werror.m420 # --enable-warnings-as-errors configuration option to the package
22 # compilation warnings as errors. #
30 # Adds an --enable-warnings-as-errors configuration option to the
49 AC_CACHE_CHECK([whether to treat all compilation warnings as errors],
52 AC_ARG_ENABLE(warnings-as-errors,
53 …[AS_HELP_STRING([--enable-warnings-as-errors],[Treat all compilation warnings as errors @<:@defaul…
62 AC_MSG_ERROR([Invalid value ${enableval} for --enable-warnings-as-errors])
75 … AC_MSG_ERROR([Could not determine how to treat warnings as errors for your compiler ${CC}])
/external/python/cpython3/Lib/test/test_importlib/builtin/
Dtest_finder.py8 import warnings
62 with warnings.catch_warnings():
63 warnings.simplefilter("ignore", DeprecationWarning)
76 with warnings.catch_warnings():
77 warnings.simplefilter("ignore", DeprecationWarning)
84 with warnings.catch_warnings():
85 warnings.simplefilter("ignore", DeprecationWarning)
/external/python/cryptography/tests/
Dtest_warnings.py9 import warnings
35 with warnings.catch_warnings(record=True) as log:
36 warnings.simplefilter("always", PendingDeprecationWarning)
37 warnings.simplefilter("always", DeprecationWarning)
69 with warnings.catch_warnings(record=True) as log:
70 warnings.simplefilter("always", PendingDeprecationWarning)
71 warnings.simplefilter("always", DeprecationWarning)
/external/python/cpython2/Lib/test/
Dtest_py3kwarn.py4 import warnings
41 self.assertEqual(len(recorder.warnings), 0)
255 self.assertEqual(len(w.warnings), 0)
259 self.assertEqual(len(w.warnings), 1)
266 self.assertEqual(len(w.warnings), 1)
272 self.assertEqual(len(w.warnings), 0)
280 self.assertEqual(len(w.warnings), 0)
284 self.assertEqual(len(w.warnings), 1)
291 self.assertEqual(len(w.warnings), 1)
297 self.assertEqual(len(w.warnings), 0)
[all …]
/external/mockito/src/main/java/org/mockito/internal/junit/util/
DJUnitFailureHacker.java14 public void appendWarnings(Failure failure, String warnings) { in appendWarnings() argument
15 if (isEmpty(warnings)) { in appendWarnings()
22 warnings + "\n *** The actual failure is because of: ***\n"; in appendWarnings()
29 private boolean isEmpty(String warnings) { in isEmpty() argument
30 return warnings == null || "".equals(warnings); // isEmpty() is in JDK 6+ in isEmpty()
/external/python/cpython2/Lib/plat-mac/Carbon/
D__init__.py2 import warnings
3 warnings.filterwarnings("ignore", "", FutureWarning, ".*Controls")
4 warnings.filterwarnings("ignore", "", FutureWarning, ".*MacTextEditor")
6 from warnings import warnpy3k
/external/rust/crates/ring/
DAndroid.bp39 // has rustc warnings
74 // has rustc warnings
132 // has rustc warnings
143 // has rustc warnings
154 // has rustc warnings
165 // has rustc warnings
176 // has rustc warnings
187 // has rustc warnings
198 // has rustc warnings
209 // has rustc warnings
[all …]

12345678910>>...88