summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJason Madden <jamadden@gmail.com>2017-09-12 12:06:06 -0500
committerJason Madden <jamadden@gmail.com>2017-09-12 12:06:06 -0500
commit720b67f120316ae7930a001334098e90e4eb23e9 (patch)
treed6ec69423c53714b6f618091330dbda5bfe6af39 /tox.ini
parent4d430612493cb22611efcefe4465b1464962d7a0 (diff)
downloadzope-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.ini12
1 files changed, 5 insertions, 7 deletions
diff --git a/tox.ini b/tox.ini
index fda63e1..c4f3928 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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]