Home
last modified time | relevance | path

Searched refs:showwarning (Results 1 – 25 of 38) sorted by relevance

12

/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_warning.py15 showwarning = warnings.showwarning variable
18 running_in_idle = 'idle' in showwarning.__name__
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)
Dmock_tk.py92 showwarning = Mbox_func() # None variable in Mbox
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_warning.py14 showwarning = warnings.showwarning variable
17 running_in_idle = 'idle' in showwarning.__name__
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)
Dmock_tk.py86 showwarning = Mbox_func() # None variable in Mbox
/external/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/test/
Dsupport.py154 self._showwarning = self._module.showwarning
158 def showwarning(*args, **kwargs): function
160 self._module.showwarning = showwarning
171 self._module.showwarning = self._showwarning
/external/python/dateutil/dateutil/test/
D_common.py27 if self._showwarning is not self._module.showwarning:
28 super_showwarning = self._module.showwarning
32 def showwarning(*args, **kwargs): function
38 self._module.showwarning = showwarning
/external/python/cpython2/Lib/
Dwarnings.py38 showwarning = _show_warning variable
300 showwarning(message, category, filename, lineno)
370 self._showwarning = self._module.showwarning
373 def showwarning(*args, **kwargs): function
375 self._module.showwarning = showwarning
384 self._module.showwarning = self._showwarning
/external/python/cpython2/Lib/test/
Dtest_warnings.py528 del self.module.showwarning
537 old_showwarning = self.module.showwarning
538 self.module.showwarning = 23
542 self.module.showwarning = old_showwarning
549 del self.module.showwarning
713 self.module.showwarning(message, category, file_name, line_num,
721 self.module.showwarning(message, category, file_name, line_num,
739 orig_showwarning = wmod.showwarning
742 wmod.filters = wmod.showwarning = object()
744 self.assertTrue(wmod.showwarning is orig_showwarning)
[all …]
/external/python/cpython3/Lib/test/test_warnings/
D__init__.py708 del self.module.showwarning
733 self.module.showwarning = print
736 self.module.showwarning = 23
744 del self.module.showwarning
891 self.module.showwarning(message, category, file_name, line_num,
899 self.module.showwarning(message, category, file_name, line_num,
918 self.module.showwarning(message, category, file_name, line_num,
982 orig_showwarning = wmod.showwarning
985 wmod.filters = wmod.showwarning = object()
987 self.assertIs(wmod.showwarning, orig_showwarning)
[all …]
/external/python/cpython3/Lib/
Dwarnings.py10 def showwarning(message, category, filename, lineno, file=None, line=None): function
94 _showwarning_orig = showwarning
99 sw = showwarning
465 self._showwarning = self._module.showwarning
472 self._module.showwarning = self._module._showwarning_orig
482 self._module.showwarning = self._showwarning
/external/python/cpython2/Lib/lib-tk/
DtkMessageBox.py85 def showwarning(title=None, message=None, **options): function
128 print "warning", showwarning("Spam", "Egg Warning")
DtkSimpleDialog.py216 tkMessageBox.showwarning(
224 tkMessageBox.showwarning(
233 tkMessageBox.showwarning(
/external/python/cpython3/Lib/tkinter/
Dmessagebox.py91 def showwarning(title=None, message=None, **options): function
140 print("warning", showwarning("Spam", "Egg Warning"))
Dsimpledialog.py295 messagebox.showwarning(
303 messagebox.showwarning(
312 messagebox.showwarning(
/external/python/cpython2/Lib/idlelib/
Drun.py48 _warnings_showwarning = warnings.showwarning
49 warnings.showwarning = idle_showwarning_subproc
52 warnings.showwarning = _warnings_showwarning
/external/python/cpython2/Doc/library/
Dwarnings.rst41 The printing of warning messages is done by calling :func:`showwarning`, which
242 results. The :func:`showwarning` function in the module is also restored to
341 .. function:: showwarning(message, category, filename, lineno[, file[, line]])
347 ``warnings.showwarning``.
349 message; if *line* is not supplied, :func:`showwarning` will
402 and the :func:`showwarning` function.
406 :func:`showwarning` function (which also suppresses output to ``sys.stdout``).
408 :func:`showwarning`.
419 :func:`showwarning` function and internal list of filter
/external/python/cpython3/Doc/library/
Dwarnings.rst38 The printing of warning messages is done by calling :func:`showwarning`, which
348 results. The :func:`showwarning` function in the module is also restored to
443 .. function:: showwarning(message, category, filename, lineno, file=None, line=None)
448 this function with any callable by assigning to ``warnings.showwarning``.
450 message; if *line* is not supplied, :func:`showwarning` will
497 and the :func:`showwarning` function.
501 :func:`showwarning` function (which also suppresses output to ``sys.stdout``).
503 :func:`showwarning`.
514 :func:`showwarning` function and internal list of filter
Dtkinter.messagebox.rst30 .. method:: showwarning(title=None, message=None, **options)
/external/python/cpython3/Lib/test/libregrtest/
Dsave_env.py266 return warnings.showwarning
268 warnings.showwarning = fxn
/external/python/cpython3/Lib/idlelib/
Drun.py77 _warnings_showwarning = warnings.showwarning
78 warnings.showwarning = idle_showwarning_subproc
81 warnings.showwarning = _warnings_showwarning
Dpyshell.py94 _warnings_showwarning = warnings.showwarning
95 warnings.showwarning = idle_showwarning
98 warnings.showwarning = _warnings_showwarning
/external/python/cpython3/Misc/NEWS.d/
D3.6.0rc1.rst51 warnings.showwarning() if it was overridden inside the context manager.
/external/python/cpython2/Lib/logging/
D__init__.py1746 _warnings_showwarning = warnings.showwarning
1747 warnings.showwarning = _showwarning
1750 warnings.showwarning = _warnings_showwarning
/external/python/cpython3/Lib/logging/
D__init__.py2203 _warnings_showwarning = warnings.showwarning
2204 warnings.showwarning = _showwarning
2207 warnings.showwarning = _warnings_showwarning
/external/llvm-project/llvm/utils/
Dupdate_mca_test_checks.py566 warnings.showwarning = _showwarning

12