Home
last modified time | relevance | path

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

12

/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/python/cpython3/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/python/cpython2/Lib/
Dwarnings.py38 showwarning = _show_warning variable
300 showwarning(message, category, filename, lineno)
367 self._showwarning = self._module.showwarning
370 def showwarning(*args, **kwargs): function
372 self._module.showwarning = showwarning
381 self._module.showwarning = self._showwarning
/external/python/cpython2/Lib/test/
Dtest_warnings.py524 del self.module.showwarning
533 old_showwarning = self.module.showwarning
534 self.module.showwarning = 23
538 self.module.showwarning = old_showwarning
545 del self.module.showwarning
677 self.module.showwarning(message, category, file_name, line_num,
685 self.module.showwarning(message, category, file_name, line_num,
703 orig_showwarning = wmod.showwarning
706 wmod.filters = wmod.showwarning = object()
708 self.assertTrue(wmod.showwarning is orig_showwarning)
[all …]
Dtest_logging.py1099 warnings.showwarning("Explicit", UserWarning, "dummy.py", 42,
/external/python/cpython3/Lib/test/test_warnings/
D__init__.py719 del self.module.showwarning
739 self.module.showwarning = print
742 self.module.showwarning = 23
750 del self.module.showwarning
825 self.module.showwarning(message, category, file_name, line_num,
833 self.module.showwarning(message, category, file_name, line_num,
883 orig_showwarning = wmod.showwarning
886 wmod.filters = wmod.showwarning = object()
888 self.assertTrue(wmod.showwarning is orig_showwarning)
891 wmod.filters = wmod.showwarning = object()
[all …]
/external/python/cpython3/Lib/
Dwarnings.py10 def showwarning(message, category, filename, lineno, file=None, line=None): function
83 _showwarning_orig = showwarning
88 sw = showwarning
456 self._showwarning = self._module.showwarning
463 self._module.showwarning = self._module._showwarning_orig
473 self._module.showwarning = self._showwarning
/external/python/cpython3/Lib/tkinter/
Dmessagebox.py85 def showwarning(title=None, message=None, **options): function
128 print("warning", showwarning("Spam", "Egg Warning"))
Dsimpledialog.py295 messagebox.showwarning(
303 messagebox.showwarning(
312 messagebox.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/cpython2/Lib/idlelib/
Drun.py48 _warnings_showwarning = warnings.showwarning
49 warnings.showwarning = idle_showwarning_subproc
52 warnings.showwarning = _warnings_showwarning
DPyShell.py93 _warnings_showwarning = warnings.showwarning
94 warnings.showwarning = idle_showwarning
97 warnings.showwarning = _warnings_showwarning
DEditorWindow.py893 tkMessageBox.showwarning(title='IDLE Warning',
/external/python/cpython3/Doc/library/
Dwarnings.rst38 The printing of warning messages is done by calling :func:`showwarning`, which
249 results. The :func:`showwarning` function in the module is also restored to
352 .. function:: showwarning(message, category, filename, lineno, file=None, line=None)
357 this function with any callable by assigning to ``warnings.showwarning``.
359 message; if *line* is not supplied, :func:`showwarning` will
406 and the :func:`showwarning` function.
410 :func:`showwarning` function (which also suppresses output to ``sys.stdout``).
412 :func:`showwarning`.
423 :func:`showwarning` function and internal list of filter
/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/Lib/idlelib/
Drun.py66 _warnings_showwarning = warnings.showwarning
67 warnings.showwarning = idle_showwarning_subproc
70 warnings.showwarning = _warnings_showwarning
Dpyshell.py81 _warnings_showwarning = warnings.showwarning
82 warnings.showwarning = idle_showwarning
85 warnings.showwarning = _warnings_showwarning
Deditor.py817 tkMessageBox.showwarning(title='IDLE Warning',
/external/python/cpython3/Lib/test/libregrtest/
Dsave_env.py252 return warnings.showwarning
254 warnings.showwarning = fxn
/external/python/cpython2/Lib/logging/
D__init__.py1739 _warnings_showwarning = warnings.showwarning
1740 warnings.showwarning = _showwarning
1743 warnings.showwarning = _warnings_showwarning
/external/python/cpython3/Lib/logging/
D__init__.py1989 _warnings_showwarning = warnings.showwarning
1990 warnings.showwarning = _showwarning
1993 warnings.showwarning = _warnings_showwarning
/external/autotest/client/common_lib/
Dutils.py101 warnings.showwarning = custom_warning_handler

12