diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-05-27 10:55:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 10:55:38 (GMT) |
commit | 8cec740820fc875117bfa7b6bdb10202ebeb8fd5 (patch) | |
tree | f6f0cec358cee5e0fe2559f3503dd08432af11e2 /Doc/library/test.rst | |
parent | dcb8786a9848516e823e090bb36079678913d8d3 (diff) | |
download | cpython-8cec740820fc875117bfa7b6bdb10202ebeb8fd5.zip cpython-8cec740820fc875117bfa7b6bdb10202ebeb8fd5.tar.gz cpython-8cec740820fc875117bfa7b6bdb10202ebeb8fd5.tar.bz2 |
bpo-43988: Document test.support.check_disallow_instantiation() (GH-26394)
Diffstat (limited to 'Doc/library/test.rst')
-rw-r--r-- | Doc/library/test.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst index e4f779b..eb4f04f 100644 --- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -928,8 +928,16 @@ The :mod:`test.support` module defines the following functions: .. versionadded:: 3.10 +.. function:: check_disallow_instantiation(test_case, tp, *args, **kwds) + + Assert that type *tp* cannot be instantiated using *args* and *kwds*. + + .. versionadded:: 3.11 + + The :mod:`test.support` module defines the following classes: + .. class:: SuppressCrashReport() A context manager used to try to prevent crash dialog popups on tests that |