Merge "Switch default py3x to py35"
This commit is contained in:
commit
53677a0356
@ -96,7 +96,7 @@ Running unit tests
|
|||||||
------------------
|
------------------
|
||||||
Run the unit tests by doing::
|
Run the unit tests by doing::
|
||||||
|
|
||||||
tox -e py34
|
tox -e py35
|
||||||
tox -e py27
|
tox -e py27
|
||||||
|
|
||||||
See :doc:`testing` for more details.
|
See :doc:`testing` for more details.
|
||||||
|
@ -86,7 +86,7 @@ More information about tempest can be found in the `Tempest Documentation
|
|||||||
Running a subset of tests using tox
|
Running a subset of tests using tox
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
One common activity is to just run a single test, you can do this with tox
|
One common activity is to just run a single test, you can do this with tox
|
||||||
simply by specifying to just run py27 or py34 tests against a single test::
|
simply by specifying to just run py27 or py35 tests against a single test::
|
||||||
|
|
||||||
tox -epy27 -- -n cinder.tests.unit.test_volume.AvailabilityZoneTestCase.test_list_availability_zones_cached
|
tox -epy27 -- -n cinder.tests.unit.test_volume.AvailabilityZoneTestCase.test_list_availability_zones_cached
|
||||||
|
|
||||||
@ -116,9 +116,9 @@ can get around this by manually setting or updating the following line in
|
|||||||
Note that you may use any location (not just ``/tmp``!) as long as it is not
|
Note that you may use any location (not just ``/tmp``!) as long as it is not
|
||||||
a shared folder.
|
a shared folder.
|
||||||
|
|
||||||
**Running py34 tests**
|
**Running py35 tests**
|
||||||
|
|
||||||
You will need to install python3-dev in order to get py34 tests to run. If you
|
You will need to install python3-dev in order to get py35 tests to run. If you
|
||||||
do not have this, you will get the following::
|
do not have this, you will get the following::
|
||||||
|
|
||||||
netifaces.c:1:20: fatal error: Python.h: No such file or directory
|
netifaces.c:1:20: fatal error: Python.h: No such file or directory
|
||||||
@ -131,13 +131,13 @@ do not have this, you will get the following::
|
|||||||
<snip>
|
<snip>
|
||||||
ERROR: could not install deps [-r/opt/stack/cinder/test-requirements.txt,
|
ERROR: could not install deps [-r/opt/stack/cinder/test-requirements.txt,
|
||||||
oslo.versionedobjects[fixtures]]; v = InvocationError('/opt/stack/cinder/
|
oslo.versionedobjects[fixtures]]; v = InvocationError('/opt/stack/cinder/
|
||||||
.tox/py34/bin/pip install -r/opt/stack/cinder/test-requirements.txt
|
.tox/py35/bin/pip install -r/opt/stack/cinder/test-requirements.txt
|
||||||
oslo.versionedobjects[fixtures] (see /opt/stack/cinder/.tox/py34/log/py34-1.log)', 1)
|
oslo.versionedobjects[fixtures] (see /opt/stack/cinder/.tox/py35/log/py35-1.log)', 1)
|
||||||
_______________________________________________________________ summary _______________________________________________________________
|
_______________________________________________________________ summary _______________________________________________________________
|
||||||
ERROR: py34: could not install deps [-r/opt/stack/cinder/test-requirements.txt,
|
ERROR: py35: could not install deps [-r/opt/stack/cinder/test-requirements.txt,
|
||||||
oslo.versionedobjects[fixtures]]; v = InvocationError('/opt/stack/cinder/
|
oslo.versionedobjects[fixtures]]; v = InvocationError('/opt/stack/cinder/
|
||||||
.tox/py34/bin/pip install -r/opt/stack/cinder/test-requirements.txt
|
.tox/py35/bin/pip install -r/opt/stack/cinder/test-requirements.txt
|
||||||
oslo.versionedobjects[fixtures] (see /opt/stack/cinder/.tox/py34/log/py34-1.log)', 1)
|
oslo.versionedobjects[fixtures] (see /opt/stack/cinder/.tox/py35/log/py35-1.log)', 1)
|
||||||
|
|
||||||
To Fix:
|
To Fix:
|
||||||
|
|
||||||
|
2
tox.ini
2
tox.ini
@ -1,7 +1,7 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 2.0
|
minversion = 2.0
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
envlist = py34,py27,compliance,pep8
|
envlist = py35,py27,compliance,pep8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
# Note the hash seed is set to 0 until cinder can be tested with a
|
# Note the hash seed is set to 0 until cinder can be tested with a
|
||||||
|
Loading…
Reference in New Issue
Block a user