From 8cb5e76bcc25327df9f938b917b622e48e9ef69f Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Sun, 28 Oct 2018 12:46:30 +0100 Subject: Use python3 for functional tests Switch to python3 for the tox basepython and for the devstack setup for functional tests to fulfill the python3-first goal[1]. We still have unit test coverage for python2. [1] https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: If82196ce6a2fffe6a43bb59077c6bdd712276958 --- .zuul.yaml | 2 ++ tox.ini | 1 + 2 files changed, 3 insertions(+) diff --git a/.zuul.yaml b/.zuul.yaml index e96674b..dc34dbb 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -7,6 +7,8 @@ - openstack/python-keystoneclient vars: tox_envlist: functional + devstack_localrc: + USE_PYTHON3: True - project: templates: diff --git a/tox.ini b/tox.ini index a78e103..9582d70 100644 --- a/tox.ini +++ b/tox.ini @@ -50,6 +50,7 @@ basepython = python3 commands = oslo_debug_helper -t keystoneclient/tests {posargs} [testenv:functional] +basepython = python3 setenv = {[testenv]setenv} OS_TEST_PATH=./keystoneclient/tests/functional passenv = OS_* -- cgit v1.2.1