mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Backport fix for SF bug #1550714, itertools.tee raises SystemError
This commit is contained in:
parent
29a5fdb7ca
commit
7ae5f29465
3 changed files with 13 additions and 2 deletions
|
|
@ -371,6 +371,7 @@ class TestBasicOps(unittest.TestCase):
|
|||
|
||||
# test values of n
|
||||
self.assertRaises(TypeError, tee, 'abc', 'invalid')
|
||||
self.assertRaises(ValueError, tee, [], -1)
|
||||
for n in xrange(5):
|
||||
result = tee('abc', n)
|
||||
self.assertEqual(type(result), tuple)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue