summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-04-26 23:41:26 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-04-26 23:41:26 (GMT)
commit469b1f0d502756f049af8c26fca96bb85275a324 (patch)
treeecddd3443f91f2402e9baec329ddd08d85e8be25 /Doc
parent90e6d04071491d9f9ce3b9953fcc074ad964ba3f (diff)
downloadcpython-469b1f0d502756f049af8c26fca96bb85275a324.zip
cpython-469b1f0d502756f049af8c26fca96bb85275a324.tar.gz
cpython-469b1f0d502756f049af8c26fca96bb85275a324.tar.bz2
Adding versionadded to several new functions in unittest documentation.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/unittest.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index f18dee4..7dc8595 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -1888,6 +1888,8 @@ handling functionality within test frameworks.
(usually in response to the user pressing control-c) all registered results
have :meth:`~TestResult.stop` called.
+ .. versionadded:: 3.2
+
.. function:: registerResult(result)
Register a :class:`TestResult` object for control-c handling. Registering a
@@ -1898,12 +1900,16 @@ handling functionality within test frameworks.
handling is not enabled, so test frameworks can unconditionally register
all results they create independently of whether or not handling is enabled.
+ .. versionadded:: 3.2
+
.. function:: removeResult(result)
Remove a registered result. Once a result has been removed then
:meth:`~TestResult.stop` will no longer be called on that result object in
response to a control-c.
+ .. versionadded:: 3.2
+
.. function:: removeHandler(function=None)
When called without arguments this function removes the control-c handler
@@ -1914,3 +1920,5 @@ handling functionality within test frameworks.
def test_signal_handling(self):
...
+ .. versionadded:: 3.2
+