summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-04-15 09:12:14 (GMT)
committerThomas Wouters <thomas@python.org>2006-04-15 09:12:14 (GMT)
commit1ae9afa829ff0b6372b9fd70365653ab6c565b3a (patch)
treec63c626c9647b8c486e13e1fb477609d7e92ef8a /Lib/test
parent34729030a741bcbc469ce0e796182f85405a9b3d (diff)
downloadcpython-1ae9afa829ff0b6372b9fd70365653ab6c565b3a.zip
cpython-1ae9afa829ff0b6372b9fd70365653ab6c565b3a.tar.gz
cpython-1ae9afa829ff0b6372b9fd70365653ab6c565b3a.tar.bz2
Fix test_bisect in the same way as test_itertools: iter() blows up a lot
sooner for new-style broken-iterators, expect it to.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_bisect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_bisect.py b/Lib/test/test_bisect.py
index f6e24a6..302ff63 100644
--- a/Lib/test/test_bisect.py
+++ b/Lib/test/test_bisect.py
@@ -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()]