summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_itertools.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-09-05 02:30:10 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-09-05 02:30:10 (GMT)
commit7ae5f294658caaf4de4afabbc779317cca0217da (patch)
treecdfd534ecbc67e4f357d2ee10024301fac1f963c /Lib/test/test_itertools.py
parent29a5fdb7caf372144a085247d63440d1abb51b5c (diff)
downloadcpython-7ae5f294658caaf4de4afabbc779317cca0217da.zip
cpython-7ae5f294658caaf4de4afabbc779317cca0217da.tar.gz
cpython-7ae5f294658caaf4de4afabbc779317cca0217da.tar.bz2
Backport fix for SF bug #1550714, itertools.tee raises SystemError
Diffstat (limited to 'Lib/test/test_itertools.py')
-rw-r--r--Lib/test/test_itertools.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
index 4b631dd..6898725 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -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)