From 40e1ffc78e6f29f2ee4af1fdca4c31a9b4f397e8 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Wed, 12 Mar 2014 09:31:50 -0400 Subject: [PATCH] whatsnew: fix unittest subtest example. --- Doc/whatsnew/3.4.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0