commit | 0f36573f10fb1125042ada81b9feaee0c5b8a9ff | [log] [tgz] |
---|---|---|
author | Ezio Melotti <ezio.melotti@gmail.com> | Mon Feb 08 22:07:38 2010 +0000 |
committer | Ezio Melotti <ezio.melotti@gmail.com> | Mon Feb 08 22:07:38 2010 +0000 |
tree | da7f9afc1e9b71892d796f51f383b0ec8b31419e | |
parent | 50dcfc5d7d385982bdf847cdaa4d58730df96d6a [diff] [blame] |
Use non-deprecated method in the example
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 051c730..bc7062c 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst
@@ -816,7 +816,7 @@ 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