summaryrefslogtreecommitdiff
path: root/Doc/library
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-03-07 18:44:29 +0200
committerEzio Melotti <ezio.melotti@gmail.com>2013-03-07 18:44:29 +0200
commit1f38621a336932754b242cd4779e7d0545fd0dfe (patch)
treed3c1332eec7dc52188db3ef644933916a3cd5752 /Doc/library
parentf9164e13fc10f3ea2e2e36b8eec96566867264f7 (diff)
downloadcpython-git-1f38621a336932754b242cd4779e7d0545fd0dfe.tar.gz
#11732: add a new suppress_crash_popup() context manager to test.support that disables crash popups on Windows and use it in test_ctypes.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/test.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst
index 40f4115ead..24e06d5215 100644
--- a/Doc/library/test.rst
+++ b/Doc/library/test.rst
@@ -365,6 +365,13 @@ The :mod:`test.support` module defines the following functions:
assert s.getvalue() == "hello\n"
+.. function:: suppress_crash_popup()
+
+ A context manager that disables Windows Error Reporting dialogs using
+ `SetErrorMode <http://msdn.microsoft.com/en-us/library/windows/desktop/ms680621%28v=vs.85%29.aspx>`_.
+ On other platforms it's a no-op.
+
+
.. function:: import_module(name, deprecated=False)
This function imports and returns the named module. Unlike a normal