git: f667ee5af58d - main - www/py-multidict: switch to USES=pytest

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Tue, 19 Apr 2022 17:43:22 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f667ee5af58daee5c53ddcf3df3172643e98c9f5

commit f667ee5af58daee5c53ddcf3df3172643e98c9f5
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-04-15 16:11:51 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-04-19 17:43:12 +0000

    www/py-multidict: switch to USES=pytest
---
 www/py-multidict/Makefile | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/www/py-multidict/Makefile b/www/py-multidict/Makefile
index 01ca364ce437..bdeb0c07d16a 100644
--- a/www/py-multidict/Makefile
+++ b/www/py-multidict/Makefile
@@ -10,17 +10,13 @@ COMMENT=	Multidict implementation
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR} \
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR}
 
-USES=		python:3.7+
+USES=		python:3.7+ pytest
 USE_PYTHON=	autoplist cython distutils
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/multidict/*.so
 
-do-test:
-	@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts=
-
 .include <bsd.port.mk>