Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 70e32c8

Browse files
committed
fix some versionchanged and versionadded directives
1 parent 52baa29 commit 70e32c8

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

Doc/library/unittest.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ Test cases
620620
default value for *msg* can be computed to include representations of both
621621
*first* and *second*.
622622

623+
623624
.. method:: assertAlmostEqual(first, second[, places[, msg]])
624625
failUnlessAlmostEqual(first, second[, places[, msg]])
625626

@@ -656,7 +657,7 @@ Test cases
656657
To catch any of a group of exceptions, a tuple containing the exception
657658
classes may be passed as *exception*.
658659

659-
.. versionchanged:: 2.7
660+
.. versionchanged:: 3.1
660661

661662
If *callable* is omitted or None, returns a context manager so that the
662663
code under test can be written inline rather than as a function::
@@ -732,7 +733,6 @@ Test cases
732733

733734
.. _testsuite-objects:
734735

735-
736736
Grouping tests
737737
~~~~~~~~~~~~~~
738738

@@ -934,10 +934,6 @@ Loading and running tests
934934
holding formatted tracebacks. Each tuple represents a test which raised an
935935
unexpected exception.
936936

937-
.. versionchanged:: 2.2
938-
939-
Contains formatted tracebacks instead of :func:`sys.exc_info` results.
940-
941937

942938
.. attribute:: failures
943939

@@ -946,16 +942,12 @@ Loading and running tests
946942
was explicitly signalled using the :meth:`TestCase.fail\*` or
947943
:meth:`TestCase.assert\*` methods.
948944

949-
.. versionchanged:: 2.2
950-
951-
Contains formatted tracebacks instead of :func:`sys.exc_info` results.
952-
953945
.. attribute:: skipped
954946

955947
A list containing 2-tuples of :class:`TestCase` instances and strings
956948
holding the reason for skipping the test.
957949

958-
.. versionadded:: 2.7
950+
.. versionadded:: 3.1
959951

960952
.. attribute:: expectedFailures
961953

0 commit comments

Comments
 (0)