summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-09-02 02:58:13 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-09-02 02:58:13 (GMT)
commit69e88975059b0c74e3e9a17dd46b715a532cfd20 (patch)
tree5d38c338f3b28f72896abcac26870cbd83afc848 /Lib/test
parent6aefa916a96f7d3ce7f634134dba6060c68b647a (diff)
downloadcpython-69e88975059b0c74e3e9a17dd46b715a532cfd20.zip
cpython-69e88975059b0c74e3e9a17dd46b715a532cfd20.tar.gz
cpython-69e88975059b0c74e3e9a17dd46b715a532cfd20.tar.bz2
Bug #1550714: fix SystemError from itertools.tee on negative value for n.
Needs backport to 2.5.1 and earlier.
Diffstat (limited to 'Lib/test')
-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)