Commit 7233acc5 authored by Benjamin Peterson's avatar Benjamin Peterson

stop the versionchanged directive from hiding the docs

parent be76d4ca
......@@ -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*.
.. versionchanged:: 2.7
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()
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::
.. versionchanged:: 2.7
Added the ability to use :meth:`assertRaises` as a context manager.
with self.failUnlessRaises(some_error_class):
do_something()
.. method:: failIf(expr[, msg])
assertFalse(expr[, msg])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment