summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-04-26 23:36:47 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-04-26 23:36:47 (GMT)
commit47b5440f439b983cdcee1f52bb219977c3257e57 (patch)
tree7d7a35d7b258ec530225fb5c0d1028b85a4fd761
parent3939dcdb72e29aeac43c0c6bcba69e098ed516ee (diff)
downloadcpython-47b5440f439b983cdcee1f52bb219977c3257e57.zip
cpython-47b5440f439b983cdcee1f52bb219977c3257e57.tar.gz
cpython-47b5440f439b983cdcee1f52bb219977c3257e57.tar.bz2
Adding versionadded to various new unittest functions in documentation
-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 66ac57c..0eaae9a 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -1873,6 +1873,8 @@ handling functionality within test frameworks.
(usually in response to the user pressing control-c) all registered results
have :meth:`~TestResult.stop` called.
+ .. versionadded:: 2.7
+
.. function:: registerResult(result)
Register a :class:`TestResult` object for control-c handling. Registering a
@@ -1883,12 +1885,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:: 2.7
+
.. 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:: 2.7
+
.. function:: removeHandler(function=None)
When called without arguments this function removes the control-c handler
@@ -1899,3 +1905,5 @@ handling functionality within test frameworks.
def test_signal_handling(self):
...
+ .. versionadded:: 2.7
+