mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix test_bisect in the same way as test_itertools: iter() blows up a lot
sooner for new-style broken-iterators, expect it to.
This commit is contained in:
parent
34729030a7
commit
1ae9afa829
1 changed files with 2 additions and 2 deletions
|
@ -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()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue