[Python-checkins] cpython (2.7): Issue #21346: Fix typos in test_itertools. Patch by Brian Kearns.

zach.ware python-checkins at python.org
Thu Apr 24 20:23:25 CEST 2014


http://hg.python.org/cpython/rev/1beb3e0507fa
changeset:   90450:1beb3e0507fa
branch:      2.7
parent:      90434:b428b803f71f
user:        Zachary Ware <zachary.ware at gmail.com>
date:        Thu Apr 24 13:20:27 2014 -0500
summary:
  Issue #21346: Fix typos in test_itertools.  Patch by Brian Kearns.

files:
  Lib/test/test_itertools.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -274,7 +274,7 @@
                     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 @@
                          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')))

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list