[PATCH 01 of 24 yams V2] [tox] enforce usage of python3 for tests

Nicola Spanti nicola.spanti at logilab.fr
Wed Mar 4 15:48:49 CET 2020


Hi.

https://tox.readthedocs.io/en/latest/config.html#conf-basepython
Is it useful? If yes, why? The only environment is py3, so python3 will 
already be used without this change if I understand well the documentation.

Le 04/03/2020 à 15:17, Laurent Peuch a écrit :
> # HG changeset patch
> # User Laurent Peuch <cortex at worlddomination.be>
> # Date 1580338562 -3600
> #      Wed Jan 29 23:56:02 2020 +0100
> # Node ID 4a3921f215e07cbc3561ab87354462a1a7413b8a
> # Parent  c4de9c9ce27c47505bdf144a46e108dae5a2f8fa
> # Available At https://hg.logilab.org/users/lpeuch/yams
> #              hg pull https://hg.logilab.org/users/lpeuch/yams -r 4a3921f215e0
> # EXP-Topic type_annotations
> [tox] enforce usage of python3 for tests
> 
> diff --git a/tox.ini b/tox.ini
> --- a/tox.ini
> +++ b/tox.ini
> @@ -2,6 +2,7 @@
>   envlist=py3,check-manifest,flake8
>   
>   [testenv]
> +basepython=python3
>   deps =
>     pytest
>   commands={envpython} -m pytest {posargs:{toxinidir}/test}
> 



More information about the cubicweb-devel mailing list