diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-09-02 02:58:13 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-09-02 02:58:13 (GMT) |
commit | 69e88975059b0c74e3e9a17dd46b715a532cfd20 (patch) | |
tree | 5d38c338f3b28f72896abcac26870cbd83afc848 /Lib/test | |
parent | 6aefa916a96f7d3ce7f634134dba6060c68b647a (diff) | |
download | cpython-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.py | 1 |
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) |