summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-04-01 15:11:09 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-04-01 15:11:09 (GMT)
commit067bbba7a49aa8bf455465eb5ee75d561cfb1556 (patch)
treeaebfb261ce673b1664a884396d280aca7ad13e67 /Lib
parentbbe3803fb5c49a20a0abd9b44feb7553dbe3179b (diff)
downloadcpython-067bbba7a49aa8bf455465eb5ee75d561cfb1556.zip
cpython-067bbba7a49aa8bf455465eb5ee75d561cfb1556.tar.gz
cpython-067bbba7a49aa8bf455465eb5ee75d561cfb1556.tar.bz2
Check deques against common sequence tests (except for slicing).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_deque.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/Lib/test/test_deque.py b/Lib/test/test_deque.py
index 49d5dcf..b858509 100644
--- a/Lib/test/test_deque.py
+++ b/Lib/test/test_deque.py
@@ -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)