Skip to content

Commit 8a166d8

Browse files
Tox.ini: add py39
This allows us to run unit tests and functional tests using Python3.9. We also remove all testenv:py3* environments, since tox is able to infer what version of Python to use from the environment name. Change-Id: If9ce1475ddfc66c9b37cd3500af982bf3814bf60
1 parent 73742be commit 8a166d8

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tox.ini

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,12 @@ deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/
3030
-r{toxinidir}/requirements.txt
3131
commands =
3232
find . -type f -name "*.pyc" -delete
33+
stestr run --slowest {posargs}
3334
whitelist_externals = bash
3435
find
3536
rm
3637
passenv = *_proxy *_PROXY
3738

38-
[testenv:py36]
39-
commands = stestr run --slowest {posargs}
40-
41-
[testenv:py37]
42-
commands = stestr run --slowest {posargs}
43-
44-
[testenv:py38]
45-
commands = stestr run --slowest {posargs}
46-
4739
[testenv:functional]
4840
# this will use whatever the system python3 is
4941
setenv =
@@ -62,6 +54,10 @@ commands = {[testenv:functional]commands}
6254
setenv = {[testenv:functional]setenv}
6355
commands = {[testenv:functional]commands}
6456

57+
[testenv:functional-py39]
58+
setenv = {[testenv:functional]setenv}
59+
commands = {[testenv:functional]commands}
60+
6561
[testenv:genpolicy]
6662
basepython = python3
6763
commands =

0 commit comments

Comments
 (0)