Home
last modified time | relevance | path

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

12345678910>>...82

/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/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/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 …]
/external/rust/crates/ring/
DAndroid.bp39 // has rustc warnings
70 // has rustc warnings
238 // has rustc warnings
248 // has rustc warnings
255 // has rustc warnings
265 // has rustc warnings
272 // has rustc warnings
282 // has rustc warnings
289 // has rustc warnings
299 // has rustc warnings
[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/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/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/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/perfetto/test/trace_processor/graphics/
Dandroid_jank.out2 warnings {
8 warnings {
14 warnings {
20 warnings {
26 warnings {
32 warnings {
/external/toolchain-utils/cwp/cr-os/
Dfetch_gn_descs_test.py86 warnings, desc_json = fetch_gn_descs._parse_gn_desc_output(gn_desc)
87 self.assertEqual(warnings, '\n'.join((
98 warnings, desc_json = fetch_gn_descs._parse_gn_desc_output(gn_desc)
99 self.assertEqual(warnings, '')
103 warnings, desc_json = fetch_gn_descs._parse_gn_desc_output(gn_desc)
104 self.assertEqual(warnings, '')
/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/llvm-project/polly/lib/External/isl/m4/
Dax_set_warning_flags.m41 dnl Add a set of flags to WARNING_FLAGS, that enable compiler warnings for
2 dnl isl. The warnings that are enabled vary with the compiler and only include
3 dnl warnings that did not trigger at the time of adding these flags.
10 dnl isl is at the moment clean of -Wall warnings. If clang adds
11 dnl new warnings to -Wall which cause false positives, the
14 dnl all warnings run configure with CFLAGS=-Wno-all.
/external/llvm-project/lld/test/ELF/
Dwarn-backrefs.s10 # RUN: ld.lld --fatal-warnings %t1.o %t2.a -o /dev/null
11 # RUN: ld.lld --fatal-warnings --warn-backrefs %t1.o %t2.a -o /dev/null
12 # RUN: ld.lld --fatal-warnings --warn-backrefs %t1.o --start-lib %t2.o --end-lib -o /dev/null
15 # RUN: ld.lld --fatal-warnings --warn-backrefs %t1.lds -o /dev/null
19 # RUN: ld.lld --fatal-warnings %t2.a %t1.o -o /dev/null
23 # RUN: ld.lld --fatal-warnings --warn-backrefs --warn-backrefs-exclude='*2.a(*2.o)' %t2.a %t1.o -o …
24 # RUN: ld.lld --fatal-warnings --warn-backrefs --warn-backrefs-exclude '*2.a(*2.o)' \
27 # RUN: ld.lld --fatal-warnings --warn-backrefs-exclude=not_exist %t2.a %t1.o -o /dev/null
31 # RUN: ld.lld --fatal-warnings --warn-backrefs %t2.lds -o /dev/null
32 # RUN: ld.lld --fatal-warnings --warn-backrefs '-(' %t2.a %t1.o '-)' -o /dev/null
[all …]
/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/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/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/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/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/apache-commons-bcel/src/examples/Mini/
DMiniC.java30 private static Vector<String> warnings = null; field in MiniC
65 warnings = new Vector<String>(); in main()
110 for(int i=0; i < warnings.size(); i++) { in main()
111 System.out.println(warnings.elementAt(i)); in main()
146 if((errors.size() > 0) || (warnings.size() > 0)) { in main()
147 System.out.println(errors.size() + " errors and " + warnings.size() + in main()
163 warnings.addElement("Warning: " + file + ":" + fillup(line, 3) + "," + in addWarning()
184 final static void addWarning(String err) { warnings.addElement(err); } in addWarning()
/external/python/cpython3/Lib/unittest/
Drunner.py5 import warnings
129 failfast=False, buffer=False, resultclass=None, warnings=None, argument
144 self.warnings = warnings
158 with warnings.catch_warnings():
159 if self.warnings:
161 warnings.simplefilter(self.warnings)
167 if self.warnings in ['default', 'always']:
168 warnings.filterwarnings('module',
Dmain.py62 failfast = catchbreak = buffer = progName = warnings = testNamePatterns = None
68 buffer=None, warnings=None, *, tb_locals=False): argument
84 if warnings is None and not sys.warnoptions:
88 self.warnings = 'default'
95 self.warnings = warnings
257 warnings=self.warnings,
264 warnings=self.warnings)
/external/pdfium/
DPRESUBMIT.py154 warnings = []
157 warnings.append(' %s:%d:%s' % (file_path, line_num, failure_type))
158 return warnings
185 warnings = []
233 warnings.extend(_CheckIncludeOrderForScope(scope, input_api, f.LocalPath(),
235 return warnings
253 warnings = []
257 warnings.extend(_CheckIncludeOrderInFile(input_api, f, changed_linenums))
260 if warnings:
262 warnings))
/external/python/cpython3/Lib/test/
Dtest_global.py5 import warnings
13 warnings.filterwarnings("error", module="<test string>")
56 with warnings.catch_warnings():
57 warnings.filterwarnings("error", module="<test string>")
/external/curl/lib/
Dchecksrc.pl30 my $warnings = 0;
52 my %warnings = (
121 $warnings{$1} = $warnings_extended{$1};
124 if(!defined($warnings{$1})) {
175 $warnings++;
238 for(sort keys %warnings) {
239 printf (" %-18s: %s\n", $_, $warnings{$_});
259 if(!$warnings{$r}) {
757 if(defined($warnings{"COPYRIGHTYEAR"})) {
810 if($errors || $warnings || $verbose) {
[all …]

12345678910>>...82