Author: thomas.wouters
Date: Sat Apr 15 11:12:14 2006
New Revision: 45426
Modified:
python/branches/p3yk/Lib/test/test_bisect.py
Log:
Fix test_bisect in the same way as test_itertools: iter() blows up a lot
sooner for new-style broken-iterators, expect it to.
Modified: python/branches/p3yk/Lib/test/test_bisect.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_bisect.py (original)
+++ python/branches/p3yk/Lib/test/test_bisect.py Sat Apr 15 11:12:14 2006
@@ -185,11 +185,11 @@
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()]
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins