summaryrefslogtreecommitdiffstats
path: root/Doc/library/test.rst
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-05-27 10:55:38 (GMT)
committerGitHub <noreply@github.com>2021-05-27 10:55:38 (GMT)
commit8cec740820fc875117bfa7b6bdb10202ebeb8fd5 (patch)
treef6f0cec358cee5e0fe2559f3503dd08432af11e2 /Doc/library/test.rst
parentdcb8786a9848516e823e090bb36079678913d8d3 (diff)
downloadcpython-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.rst8
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