[PATCH] tests: add a flag for adding other things into tests python path

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Mar 31 23:54:32 EDT 2016



On 03/30/2016 02:32 PM, Mateusz Kwapich wrote:
> # HG changeset patch
> # User Mateusz Kwapich <mitrandir at fb.com>
> # Date 1459373177 25200
> #      Wed Mar 30 14:26:17 2016 -0700
> # Node ID e01dd6e1427d0696def2151d3bd9581d83d78a63
> # Parent  479707ded4d0b07347f5b98982a0fca8a94dcf98
> tests: add a flag for adding other things into tests python path
>
> This is very useful for testing extensions that depend on other extensions. Until
> now run-tests picked the systemwide installed version of the dependencies and
> we had no way to point it to the other version checked out locally in different
> dir.

Why not just use PYTHONPATH for that?
Also, the way I would fix this specific usecase would be with a 
dedicated environment variable pointing to the dependecy location.

Cheers,

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list