summaryrefslogtreecommitdiff
path: root/Doc/library/unittest.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/unittest.rst')
-rw-r--r--Doc/library/unittest.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 051c730b02..bc7062c621 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -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