commit | 69e88975059b0c74e3e9a17dd46b715a532cfd20 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Sat Sep 02 02:58:13 2006 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Sat Sep 02 02:58:13 2006 +0000 |
tree | 5d38c338f3b28f72896abcac26870cbd83afc848 | |
parent | 6aefa916a96f7d3ce7f634134dba6060c68b647a [diff] [blame] |
Bug #1550714: fix SystemError from itertools.tee on negative value for n. Needs backport to 2.5.1 and earlier.
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 @@ # 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)