From cd4f6578097e508f808da42edcd3421fb516c3f6 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Mon, 8 Feb 2010 21:52:08 +0000 Subject: [PATCH] Fix exc_value -> exception in docstring --- Lib/unittest/case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.50.1