Kaydet (Commit) 1ae9afa8 authored tarafından Thomas Wouters's avatar Thomas Wouters

Fix test_bisect in the same way as test_itertools: iter() blows up a lot

sooner for new-style broken-iterators, expect it to.
üst 34729030
......@@ -185,11 +185,11 @@ class TestErrorHandling(unittest.TestCase):
def test_len_only(self):
for f in (bisect_left, bisect_right, insort_left, insort_right):
self.assertRaises(AttributeError, f, LenOnly(), 10)
self.assertRaises(TypeError, f, LenOnly(), 10)
def test_get_only(self):
for f in (bisect_left, bisect_right, insort_left, insort_right):
self.assertRaises(AttributeError, f, GetOnly(), 10)
self.assertRaises(TypeError, f, GetOnly(), 10)
def test_cmp_err(self):
seq = [CmpErr(), CmpErr(), CmpErr()]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment