mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Check deques against common sequence tests (except for slicing).
This commit is contained in:
parent
bbe3803fb5
commit
067bbba7a4
1 changed files with 16 additions and 0 deletions
|
@ -843,6 +843,21 @@ class TestSubclassWithKwargs(unittest.TestCase):
|
|||
# SF bug #1486663 -- this used to erroneously raise a TypeError
|
||||
SubclassWithKwargs(newarg=1)
|
||||
|
||||
class TestSequence(seq_tests.CommonTest):
|
||||
type2test = deque
|
||||
|
||||
def test_getitem(self):
|
||||
# For now, bypass tests that require slicing
|
||||
pass
|
||||
|
||||
def test_getslice(self):
|
||||
# For now, bypass tests that require slicing
|
||||
pass
|
||||
|
||||
def test_subscript(self):
|
||||
# For now, bypass tests that require slicing
|
||||
pass
|
||||
|
||||
#==============================================================================
|
||||
|
||||
libreftest = """
|
||||
|
@ -957,6 +972,7 @@ def test_main(verbose=None):
|
|||
TestVariousIteratorArgs,
|
||||
TestSubclass,
|
||||
TestSubclassWithKwargs,
|
||||
TestSequence,
|
||||
)
|
||||
|
||||
support.run_unittest(*test_classes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue