From ce05cec4c8ef4a8018acbaae8b6956b338e0cc05 Mon Sep 17 00:00:00 2001 From: Veronika Fisarova Date: Thu, 15 Sep 2022 11:42:30 +0200 Subject: [PATCH] The tox.ini file edited to explicitly define the python runtime environment An error occurs while executing local tests if the user has more than one Python3 runtime installed. Currently supported version of python environment for tox tests is 3.8. Basepython was explicitly defined to version 3.8 so the error won't occur due to a different version. Signed-off-by: Veronika Fisarova Change-Id: I7219d7d6e974eafbb615da201436c584ca316751 --- tox.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 708d5f3df..0e34ca90b 100644 --- a/tox.ini +++ b/tox.ini @@ -2,10 +2,14 @@ minversion = 3.2.0 envlist = linters,docs,py skipsdist = True + +# Automatic envs (pyXX) will only use the python version appropriate to that +# env and ignore basepython inherited from [testenv] if we set +# ignore_basepython_conflict. ignore_basepython_conflict = True [testenv] -basepython = python3 +basepython = python3.8 usedevelop = True passenv = TERM setenv =