diff options
author | Raymond Hettinger <python@rcn.com> | 2009-02-19 02:44:01 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-02-19 02:44:01 (GMT) |
commit | f4bb7f21000d28ef7aed350d2ce9113a4ae0817d (patch) | |
tree | efceb1c8013b5315e63ce6f22fd7bb641f388bc1 /Lib/test | |
parent | 15a4950da1a80b334ee4985c62e66a1e1071a951 (diff) | |
download | cpython-f4bb7f21000d28ef7aed350d2ce9113a4ae0817d.zip cpython-f4bb7f21000d28ef7aed350d2ce9113a4ae0817d.tar.gz cpython-f4bb7f21000d28ef7aed350d2ce9113a4ae0817d.tar.bz2 |
Add keyword arg support to itertools.repeat().
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_itertools.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index 94159b5..8492484 100644 --- a/Lib/test/test_itertools.py +++ b/Lib/test/test_itertools.py @@ -640,6 +640,7 @@ class TestBasicOps(unittest.TestCase): self.assertNotEqual(len(set(map(id, list(product('abc', 'def'))))), 1) def test_repeat(self): + self.assertEqual(list(repeat(object='a', times=3)), ['a', 'a', 'a']) self.assertEqual(lzip(range(3),repeat('a')), [(0, 'a'), (1, 'a'), (2, 'a')]) self.assertEqual(list(repeat('a', 3)), ['a', 'a', 'a']) |