Skip to content

Commit

Permalink
gh-93814: Add infinite test for itertools.chain.from_iterable (GH-93815)
Browse files Browse the repository at this point in the history
fix #93814

Automerge-Triggered-By: GH:rhettinger
  • Loading branch information
youknowone committed Jun 14, 2022
1 parent ad90d49 commit 274769c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_itertools.py
Expand Up @@ -180,6 +180,7 @@ def test_chain_from_iterable(self):
self.assertEqual(list(chain.from_iterable([''])), [])
self.assertEqual(take(4, chain.from_iterable(['abc', 'def'])), list('abcd'))
self.assertRaises(TypeError, list, chain.from_iterable([2, 3]))
self.assertEqual(list(islice(chain.from_iterable(repeat(range(5))), 2)), [0, 1])

def test_chain_reducible(self):
for oper in [copy.deepcopy] + picklecopiers:
Expand Down

0 comments on commit 274769c

Please sign in to comment.