summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-03-12 13:31:50 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-03-12 13:31:50 (GMT)
commit40e1ffc78e6f29f2ee4af1fdca4c31a9b4f397e8 (patch)
treea1b7f620f7b9b693d25b5a82bc012c1690d7be65 /Doc
parent97c36425322dd646470f187d8742dd644e40d425 (diff)
downloadcpython-40e1ffc78e6f29f2ee4af1fdca4c31a9b4f397e8.zip
cpython-40e1ffc78e6f29f2ee4af1fdca4c31a9b4f397e8.tar.gz
cpython-40e1ffc78e6f29f2ee4af1fdca4c31a9b4f397e8.tar.bz2
whatsnew: fix unittest subtest example.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.4.rst2
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