Use non-deprecated method in the example

This commit is contained in:
Ezio Melotti 2010-02-08 22:07:38 +00:00
parent 50dcfc5d7d
commit 0f36573f10
1 changed files with 1 additions and 1 deletions

View File

@ -816,7 +816,7 @@ Test cases
If only the *exception* argument is given, 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):
with self.assertRaises(SomeException):
do_something()
.. versionchanged:: 3.1