mirror of
https://github.com/python/cpython.git
synced 2024-11-28 04:15:11 +08:00
gh-93814: Add infinite test for itertools.chain.from_iterable (GH-93815)
fix #93814 Automerge-Triggered-By: GH:rhettinger
This commit is contained in:
parent
ad90d49887
commit
274769c61c
@ -180,6 +180,7 @@ class TestBasicOps(unittest.TestCase):
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user