diff options
author | Jason Madden <jamadden@gmail.com> | 2017-09-12 12:06:06 -0500 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2017-09-12 12:06:06 -0500 |
commit | 720b67f120316ae7930a001334098e90e4eb23e9 (patch) | |
tree | d6ec69423c53714b6f618091330dbda5bfe6af39 /tox.ini | |
parent | 4d430612493cb22611efcefe4465b1464962d7a0 (diff) | |
download | zope-proxy-720b67f120316ae7930a001334098e90e4eb23e9.tar.gz |
Fix indexing pure-Python proxies on Py3, and restore __getslice__ on Py2issue21
Fixes #21.
This removes the special cases for lists and tuples in the C code (but
requires an #if Python 2 block). Tests are added (and generalized for
Python 3). I verified that this fixes the issues observed in the
zope.security tests.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -10,17 +10,15 @@ commands = sphinx-build -b doctest -d {envdir}/doctrees docs {envdir}/doctest [testenv:coverage] +usedevelop = true basepython = python2.7 commands = -# The installed version messes up nose's test discovery / coverage reporting -# So, we uninstall that from the environment, and then install the editable -# version, before running nosetests. - pip uninstall -y zope.proxy - pip install -e . - coverage run -m zope.testrunner --test-path=src + coverage run -m zope.testrunner --test-path=src [] + coverage run -a -m sphinx -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest + coverage report --fail-under=100 deps = - .[test] + {[testenv]deps} coverage [testenv:docs] |