Commit c6dc726d authored by Raymond Hettinger's avatar Raymond Hettinger

Check deques against common sequence tests (except for slicing).

parent b818223b
...@@ -843,6 +843,21 @@ class TestSubclassWithKwargs(unittest.TestCase): ...@@ -843,6 +843,21 @@ class TestSubclassWithKwargs(unittest.TestCase):
# SF bug #1486663 -- this used to erroneously raise a TypeError # SF bug #1486663 -- this used to erroneously raise a TypeError
SubclassWithKwargs(newarg=1) 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 = """ libreftest = """
...@@ -957,6 +972,7 @@ def test_main(verbose=None): ...@@ -957,6 +972,7 @@ def test_main(verbose=None):
TestVariousIteratorArgs, TestVariousIteratorArgs,
TestSubclass, TestSubclass,
TestSubclassWithKwargs, TestSubclassWithKwargs,
TestSequence,
) )
support.run_unittest(*test_classes) support.run_unittest(*test_classes)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment