Skip to content

Commit 2c30e01

Browse files
authored
Update test_deque from 3.13.5 (#5939)
1 parent 01f1506 commit 2c30e01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Lib/test/test_deque.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def test_contains(self):
166166
with self.assertRaises(RuntimeError):
167167
n in d
168168

169-
def test_contains_count_stop_crashes(self):
169+
def test_contains_count_index_stop_crashes(self):
170170
class A:
171171
def __eq__(self, other):
172172
d.clear()
@@ -178,6 +178,10 @@ def __eq__(self, other):
178178
with self.assertRaises(RuntimeError):
179179
_ = d.count(3)
180180

181+
d = deque([A()])
182+
with self.assertRaises(RuntimeError):
183+
d.index(0)
184+
181185
def test_extend(self):
182186
d = deque('a')
183187
self.assertRaises(TypeError, d.extend, 1)

0 commit comments

Comments
 (0)