mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Update test_deque from 3.13.5 (#5939)
This commit is contained in:
6
Lib/test/test_deque.py
vendored
6
Lib/test/test_deque.py
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user