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:
6
tox.ini
6
tox.ini
@@ -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
|
||||
|
Reference in New Issue
Block a user