On Fri, Feb 25, 2022 at 12:52:55PM +0000, Stuart Henderson wrote: > For ports using MODPY_PYTEST, disable tests for Python 2. > It doesn't cover everything py2 using py-test, but it lets us whittle > down the number.
> OK? ok kmos --Kurt > Remaining py2 ports using py-test can then either move to using > MODPY_PYTEST (preferably) or a flavour-dependent NO_TEST directly > until we remove all use of py2 py-test and can then update the > test stack. > > Index: python.port.mk > =================================================================== > RCS file: /cvs/ports/lang/python/python.port.mk,v > retrieving revision 1.141 > diff -u -p -r1.141 python.port.mk > --- python.port.mk 26 Jan 2022 00:03:23 -0000 1.141 > +++ python.port.mk 25 Feb 2022 12:47:53 -0000 > @@ -109,9 +109,13 @@ MODPY_RUN_DEPENDS = lang/python/${MODPY_ > MODPY_LIB_DEPENDS = lang/python/${MODPY_VERSION} > _MODPY_BUILD_DEPENDS = lang/python/${MODPY_VERSION} > > -MODPY_TEST_DEPENDS = ${RUN_DEPENDS} > .if ${MODPY_PYTEST:L} == "yes" > +. if ${MODPY_VERSION} == ${MODPY_DEFAULT_VERSION_2} > +NO_TEST = Yes > +. else > +MODPY_TEST_DEPENDS = ${RUN_DEPENDS} > MODPY_TEST_DEPENDS += devel/py-test${MODPY_FLAVOR} > +. endif > .endif > > .if ${NO_BUILD:L} == "no" >