Default to running tests with Python 3

Specify PY2=1 to use Python 2.

See #1779
Closes #2235
This commit is contained in:
Olly Betts 2022-03-17 15:30:21 +13:00
commit c7af8eabb3
14 changed files with 39 additions and 36 deletions

View file

@ -2,7 +2,7 @@
# Makefile for python test-suite
#######################################################################
ifeq (,$(PY3))
ifneq (,$(PY2))
PYBIN = @PYTHON@
else
PYBIN = @PYTHON3@

View file

@ -4,5 +4,6 @@ Any testcases which have _runme.py appended after the testcase name will be dete
The _runme.py files needs to work for both Python 2.x and 3.x.
You can run make with PY3=y to run test case with Python 3.x, eg.
$ make voidtest.cpptest PY3=y
By default testcases are run with Python 3. You can run make with PY2=1 to run test case with Python 2, eg.
$ make voidtest.cpptest PY2=1