From: Michael Foord Date: Fri, 5 Feb 2010 21:45:12 +0000 (+0000) Subject: Adding versionadded to test skipping section of unittest documentation. X-Git-Tag: v2.7a3~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb0844bcc85bf528100719010ba8291c3d27875b;p=thirdparty%2FPython%2Fcpython.git Adding versionadded to test skipping section of unittest documentation. --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index dd0466b7d72d..762f0ce59454 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 `. - 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