[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Running 2to3 against test suite before testing with pybuild



[Andrii Senkovych, 2013-11-06]
>  pybuild --verbose --test-pytest --test-args="-v" --before-test "cp -R
> {dir}/tests {build_dir}"
> 
> This command works for py2.7 (obviously) but in order for this to work
> for 3.x I have to run 2to3 against test suite itself. How can I do
> that?
> 
> Also how can I specify --before-test arguments for dh_auto_test?

you can use ";" to separate commands and you can combine it with
{version.major}, but I agree that

export PYBUILD_BEFORE_TEST=cp -R {dir}/tests {build_dir}; ["{version.major}" = 2 ] || 2to3 ...

is something that looks ugly.


Reply to: