Make tox only install unittest2 in python2.6

fixes some issues around test skipping caused by unittest2 in Python
2.7+
This commit is contained in:
Adam Holmberg
2015-06-11 17:17:58 -05:00
parent 2f6d11208e
commit 09f258bdba

View File

@@ -4,7 +4,6 @@ envlist = py26,py27,pypy,py33,py34
[base]
deps = nose
mock
unittest2
PyYAML
six
@@ -17,6 +16,11 @@ commands = {envpython} setup.py build_ext --inplace
nosetests --verbosity=2 tests/unit/
nosetests --verbosity=2 tests/integration/cqlengine
[testenv:py26]
deps = {[testenv]deps}
unittest2
# test skipping is different in unittest2 for python 2.7+; let's just use it where needed
[testenv:pypy]
deps = {[base]deps}
commands = {envpython} setup.py build_ext --inplace