Update test_deque from 3.13.5 (#5939)

This commit is contained in:
Shahar Naveh
2025-07-11 02:36:34 +03:00
committed by GitHub
parent 01f15065fa
commit 2c30e01ae2

View File

@@ -166,7 +166,7 @@ class TestBasic(unittest.TestCase):
with self.assertRaises(RuntimeError):
n in d
def test_contains_count_stop_crashes(self):
def test_contains_count_index_stop_crashes(self):
class A:
def __eq__(self, other):
d.clear()
@@ -178,6 +178,10 @@ class TestBasic(unittest.TestCase):
with self.assertRaises(RuntimeError):
_ = d.count(3)
d = deque([A()])
with self.assertRaises(RuntimeError):
d.index(0)
def test_extend(self):
d = deque('a')
self.assertRaises(TypeError, d.extend, 1)