diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2006-09-05 02:30:10 (GMT) |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-09-05 02:30:10 (GMT) |
| commit | 7ae5f294658caaf4de4afabbc779317cca0217da (patch) | |
| tree | cdfd534ecbc67e4f357d2ee10024301fac1f963c /Lib/test/test_itertools.py | |
| parent | 29a5fdb7caf372144a085247d63440d1abb51b5c (diff) | |
| download | cpython-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.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) |
