]> granicus.if.org Git - python/commitdiff
Issue #21346: Fix typos in test_itertools. Patch by Brian Kearns.
authorZachary Ware <zachary.ware@gmail.com>
Thu, 24 Apr 2014 18:20:27 +0000 (13:20 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Thu, 24 Apr 2014 18:20:27 +0000 (13:20 -0500)
Lib/test/test_itertools.py

index db9f437d37af64486ea1b04782ce54bb3877c799..7233e7c270dea2e5b1294e78f463d5969fb35922 100644 (file)
@@ -274,7 +274,7 @@ class TestBasicOps(unittest.TestCase):
                     self.assertEqual(result, list(permutations(values, None))) # test r as None
                     self.assertEqual(result, list(permutations(values)))       # test default r
 
-    @test_support.impl_detail("tuple resuse is CPython specific")
+    @test_support.impl_detail("tuple reuse is specific to CPython")
     def test_permutations_tuple_reuse(self):
         self.assertEqual(len(set(map(id, permutations('abcde', 3)))), 1)
         self.assertNotEqual(len(set(map(id, list(permutations('abcde', 3))))), 1)
@@ -536,7 +536,7 @@ class TestBasicOps(unittest.TestCase):
                          zip('abc', 'def'))
 
     @test_support.impl_detail("tuple reuse is specific to CPython")
-    def test_izip_tuple_resuse(self):
+    def test_izip_tuple_reuse(self):
         ids = map(id, izip('abc', 'def'))
         self.assertEqual(min(ids), max(ids))
         ids = map(id, list(izip('abc', 'def')))