[asterisk-dev] Python 3 test suite

asterisk at phreaknet.org asterisk at phreaknet.org
Thu Sep 1 10:19:29 CDT 2022


On 9/1/2022 11:12 AM, Joshua C. Colp wrote:
> On Thu, Sep 1, 2022 at 12:10 PM <asterisk at phreaknet.org 
> <mailto:asterisk at phreaknet.org>> wrote:
>
>
>     I didn't notice any test suite code specifically calling python so
>     this
>     is purely a usage change, right? e.g. I should be running
>     ./runInVenv.sh
>     python3 runtests.py -l as opposed to ./runInVenv.sh python
>     runtests.py -l
>     It seems both may work but python3 would be the "more right" way
>     to do
>     it. So maybe the wiki page for that could be updated but a code
>     change
>     is not needed.
>
>
> runtests.py has python as its executable so you don't need to do 
> "python runtests.py" assuming python3 is the default on the system. If 
> not then you would need to, unless runtests.py was changed to have 
> python3 as its executable.

Ah, now I see what you mean. So that raises the question: shouldn't we 
change #!/usr/bin/env python to #!/usr/bin/env python3?
If only python3 will work, I don't see the advantage of not specifying 
so explicitly.



More information about the asterisk-dev mailing list