summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-02-05 21:45:12 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-02-05 21:45:12 (GMT)
commitfb0844bcc85bf528100719010ba8291c3d27875b (patch)
treeba4735091ed09a74c668b0f5260504f95e7f1e78 /Doc
parent1f3fa8ae68561c961189f23e96bd4413da434ad1 (diff)
downloadcpython-fb0844bcc85bf528100719010ba8291c3d27875b.zip
cpython-fb0844bcc85bf528100719010ba8291c3d27875b.tar.gz
cpython-fb0844bcc85bf528100719010ba8291c3d27875b.tar.bz2
Adding versionadded to test skipping section of unittest documentation.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/unittest.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index dd0466b..762f0ce 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -11,9 +11,6 @@
.. versionadded:: 2.1
-.. versionchanged:: 2.7
- Added test :ref:`skipping and expected failures <unittest-skipping>`.
-
The Python unit testing framework, sometimes referred to as "PyUnit," is a
Python language version of JUnit, by Kent Beck and Erich Gamma. JUnit is, in
turn, a Java version of Kent's Smalltalk testing framework. Each is the de
@@ -498,6 +495,8 @@ automatically build :class:`unittest.TestSuite` instances from the existing
Skipping tests and expected failures
------------------------------------
+.. versionadded:: 2.7
+
Unittest supports skipping individual test methods and even whole classes of
tests. In addition, it supports marking a test as a "expected failure," a test
that is broken and will fail, but shouldn't be counted as a failure on a