]> granicus.if.org Git - python/commitdiff
Adding versionadded to various new unittest functions in documentation
authorMichael Foord <fuzzyman@voidspace.org.uk>
Mon, 26 Apr 2010 23:36:47 +0000 (23:36 +0000)
committerMichael Foord <fuzzyman@voidspace.org.uk>
Mon, 26 Apr 2010 23:36:47 +0000 (23:36 +0000)
Doc/library/unittest.rst

index 66ac57c5ed805e0ab3317f42dd0be5ac7be19be9..0eaae9a6659d0618e4413ce5e7b0bb5e0318d6be 100644 (file)
@@ -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
+