summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-24 01:00:11 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-03-24 01:00:11 (GMT)
commit70e32c837f685c19e160f0b965ff5e275c835f8b (patch)
tree37b194ea675a3626d224357a81695c38f4359740 /Doc/library
parent52baa290335139e2c94fc43e234f920ab181e22f (diff)
downloadcpython-70e32c837f685c19e160f0b965ff5e275c835f8b.zip
cpython-70e32c837f685c19e160f0b965ff5e275c835f8b.tar.gz
cpython-70e32c837f685c19e160f0b965ff5e275c835f8b.tar.bz2
fix some versionchanged and versionadded directives
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/unittest.rst14
1 files changed, 3 insertions, 11 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 4f10c40..22bf7f3 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -620,6 +620,7 @@ Test cases
default value for *msg* can be computed to include representations of both
*first* and *second*.
+
.. method:: assertAlmostEqual(first, second[, places[, msg]])
failUnlessAlmostEqual(first, second[, places[, msg]])
@@ -656,7 +657,7 @@ Test cases
To catch any of a group of exceptions, a tuple containing the exception
classes may be passed as *exception*.
- .. versionchanged:: 2.7
+ .. versionchanged:: 3.1
If *callable* is omitted or None, returns a context manager so that the
code under test can be written inline rather than as a function::
@@ -732,7 +733,6 @@ Test cases
.. _testsuite-objects:
-
Grouping tests
~~~~~~~~~~~~~~
@@ -934,10 +934,6 @@ Loading and running tests
holding formatted tracebacks. Each tuple represents a test which raised an
unexpected exception.
- .. versionchanged:: 2.2
-
- Contains formatted tracebacks instead of :func:`sys.exc_info` results.
-
.. attribute:: failures
@@ -946,16 +942,12 @@ Loading and running tests
was explicitly signalled using the :meth:`TestCase.fail\*` or
:meth:`TestCase.assert\*` methods.
- .. versionchanged:: 2.2
-
- Contains formatted tracebacks instead of :func:`sys.exc_info` results.
-
.. attribute:: skipped
A list containing 2-tuples of :class:`TestCase` instances and strings
holding the reason for skipping the test.
- .. versionadded:: 2.7
+ .. versionadded:: 3.1
.. attribute:: expectedFailures