diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-03-12 13:31:50 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-03-12 13:31:50 (GMT) |
commit | 40e1ffc78e6f29f2ee4af1fdca4c31a9b4f397e8 (patch) | |
tree | a1b7f620f7b9b693d25b5a82bc012c1690d7be65 | |
parent | 97c36425322dd646470f187d8742dd644e40d425 (diff) | |
download | cpython-40e1ffc78e6f29f2ee4af1fdca4c31a9b4f397e8.zip cpython-40e1ffc78e6f29f2ee4af1fdca4c31a9b4f397e8.tar.gz cpython-40e1ffc78e6f29f2ee4af1fdca4c31a9b4f397e8.tar.bz2 |
whatsnew: fix unittest subtest example.
-rw-r--r-- | Doc/whatsnew/3.4.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index c12c4bf..873398c 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 |