[Python-checkins] cpython: Check deques against common sequence tests (except for slicing).
raymond.hettinger
python-checkins at python.org
Wed Apr 1 17:11:14 CEST 2015
https://hg.python.org/cpython/rev/393189326adb
changeset: 95350:393189326adb
user: Raymond Hettinger <python at rcn.com>
date: Wed Apr 01 08:11:09 2015 -0700
summary:
Check deques against common sequence tests (except for slicing).
files:
Lib/test/test_deque.py | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_deque.py b/Lib/test/test_deque.py
--- a/Lib/test/test_deque.py
+++ b/Lib/test/test_deque.py
@@ -843,6 +843,21 @@
# 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 @@
TestVariousIteratorArgs,
TestSubclass,
TestSubclassWithKwargs,
+ TestSequence,
)
support.run_unittest(*test_classes)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list