From: Ezio Melotti Date: Mon, 8 Feb 2010 21:52:08 +0000 (+0000) Subject: Fix exc_value -> exception in docstring X-Git-Tag: v2.7a4~214 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd4f6578097e508f808da42edcd3421fb516c3f6;p=python Fix exc_value -> exception in docstring --- diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index 4acfa6539a..f3c2844796 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -384,7 +384,7 @@ class TestCase(object): do_something() The context manager keeps a reference to the exception as - the exc_value attribute. This allows you to inspect the + the 'exception' attribute. This allows you to inspect the exception after the assertion:: with self.assertRaises(SomeException) as cm: