Saturday, February 27, 2021

Re: turn off all python2 tests

On 2021/02/26 21:05, Daniel Dickman wrote:
> As much as I like running reggression tests, turning off all python2 tests
> would make it quite a bit easier to move to python3.
>
> Doing this would also allow us to update some of the ports used heavily in
> tests like py-test, etc.
>
> thoughts?

too big a hammer I think, the python module is used for ports which
aren't really "python ports",

$ grep python/2 /usr/ports/INDEX |cut -d'|' -f2|egrep -v /py2?-|cut -d, -f1|uniq|wc -l
209

perhaps it should only disable tests where it's python.port.mk that
provides the test infrastructure? i.e. use the same conditional as where
do-test is defined later in the python.port.mk?

# setuptools supports regress testing from setup.py using a standard target
. if !target(do-test) && \
(${MODPY_SETUPUTILS:L} == "yes" || ${MODPY_PYTEST:L} == "yes")
do-test:
@${MODPY_TEST_TARGET}
. endif

No comments:

Post a Comment