stop the versionchanged directive from hiding the docs

This commit is contained in:
Benjamin Peterson 2009-03-29 03:31:40 +00:00
parent be76d4caed
commit 7233acc5c5
1 changed files with 7 additions and 5 deletions

View File

@ -672,13 +672,15 @@ Test cases
To catch any of a group of exceptions, a tuple containing the exception
classes may be passed as *exception*.
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::
with self.failUnlessRaises(some_error_class):
do_something()
.. versionchanged:: 2.7
Added the ability to use :meth:`assertRaises` as a context manager.
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::
with self.failUnlessRaises(some_error_class):
do_something()
.. method:: failIf(expr[, msg])
assertFalse(expr[, msg])