From: R David Murray Date: Wed, 12 Mar 2014 13:31:50 +0000 (-0400) Subject: whatsnew: fix unittest subtest example. X-Git-Tag: v3.4.1rc1~233^2~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40e1ffc78e6f29f2ee4af1fdca4c31a9b4f397e8;p=python whatsnew: fix unittest subtest example. --- diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index c12c4bf52a..873398cbe2 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -1642,7 +1642,7 @@ which will run even if one or more of them fail. For example:: class NumbersTest(unittest.TestCase): def test_even(self): for i in range(6): - with self.subTest(i=1): + with self.subTest(i=i): self.assertEqual(i % 2, 0) will result in six subtests, each identified in the unittest verbose output