diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-05 18:26:17 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-05 18:26:17 (GMT) |
commit | 25a404520da6c2560690e457404ea36f4aaa9344 (patch) | |
tree | 1148a86f226fa7edf326180cac3e94558ce4481f /Doc | |
parent | 884f0585a40d2e3203ee0512aa2f5a39ce660556 (diff) | |
download | cpython-25a404520da6c2560690e457404ea36f4aaa9344.zip cpython-25a404520da6c2560690e457404ea36f4aaa9344.tar.gz cpython-25a404520da6c2560690e457404ea36f4aaa9344.tar.bz2 |
#11732: add a new suppress_crash_popup() context manager to test.support.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/test.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst index 940d3e7..702ef8a 100644 --- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -405,6 +405,13 @@ The :mod:`test.support` module defines the following functions: A decorator for running tests that require support for symbolic links. +.. 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. + + .. decorator:: anticipate_failure(condition) A decorator to conditionally mark tests with |