]> granicus.if.org Git - python/commitdiff
Fix test_bisect in the same way as test_itertools: iter() blows up a lot
authorThomas Wouters <thomas@python.org>
Sat, 15 Apr 2006 09:12:14 +0000 (09:12 +0000)
committerThomas Wouters <thomas@python.org>
Sat, 15 Apr 2006 09:12:14 +0000 (09:12 +0000)
sooner for new-style broken-iterators, expect it to.

Lib/test/test_bisect.py

index f6e24a699405c71405705e9846dd66b223109876..302ff639a749d4a40bf367646921c62f9c9d8230 100644 (file)
@@ -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()]