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