[Python-Dev] [Python-checkins] cpython: Check deques against common sequence tests (except for slicing). (original) (raw)
Zachary Ware zachary.ware+pydev at gmail.com
Wed Apr 1 17:27:54 CEST 2015
- Previous message (by thread): [Python-Dev] AF_IUCV support for sockets
- Next message (by thread): [Python-Dev] PEP 487 vs 422 (dynamic class decoration)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Apr 1, 2015 at 10:11 AM, raymond.hettinger <python-checkins at python.org> wrote:
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/testdeque.py | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/Lib/test/testdeque.py b/Lib/test/testdeque.py --- a/Lib/test/testdeque.py +++ b/Lib/test/testdeque.py @@ -843,6 +843,21 @@ # SF bug #1486663 -- this used to erroneously raise a TypeError SubclassWithKwargs(newarg=1) +class TestSequence(seqtests.CommonTest): + type2test = deque + + def testgetitem(self): + # For now, bypass tests that require slicing + pass + + def testgetslice(self): + # For now, bypass tests that require slicing + pass + + def testsubscript(self): + # For now, bypass tests that require slicing + pass
Instead of making these empty passing tests, it's better to set them to 'None' so that unittest doesn't run them (and thus doesn't report success when it hasn't actually tested something).
-- Zach
- Previous message (by thread): [Python-Dev] AF_IUCV support for sockets
- Next message (by thread): [Python-Dev] PEP 487 vs 422 (dynamic class decoration)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]