git: c45ba2de94ea - main - math/py-pyodesys: switch to USES=pytest, fix tests

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Wed, 27 Apr 2022 11:42:23 UTC
The branch main has been updated by amdmi3:

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

commit c45ba2de94ea5e5f4b00a98b76c75c35b8d8eacb
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-04-26 14:42:03 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-04-27 11:42:12 +0000

    math/py-pyodesys: switch to USES=pytest, fix tests
    
    Reported by:    reprise
    Approved by:    portmgr blanket
---
 math/py-pyodesys/Makefile | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/math/py-pyodesys/Makefile b/math/py-pyodesys/Makefile
index 31778f9ba0be..1b99f6cd60c9 100644
--- a/math/py-pyodesys/Makefile
+++ b/math/py-pyodesys/Makefile
@@ -16,11 +16,10 @@ RUN_DEPENDS=	${PYNUMPY} \
 		${PYTHON_PKGNAMEPREFIX}scipy>=1.2.3:science/py-scipy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sym>=0.3.4:math/py-sym@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sympy>=1.5.1:math/py-sympy@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
-		${LOCALBASE}/include/boost/numeric/ublas/matrix.hpp:devel/boost-libs \
+TEST_DEPENDS=	${LOCALBASE}/include/boost/numeric/ublas/matrix.hpp:devel/boost-libs \
 		${LOCALBASE}/include/gsl/gsl_errno.h:math/gsl
 
-USES=		localbase:ldflags python:3.7+ shebangfix
+USES=		display:test localbase:ldflags python:3.7+ shebangfix pytest
 USE_PYTHON=	distutils autoplist
 
 SHEBANG_GLOB=	*.py
@@ -39,7 +38,4 @@ EXTRAS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}appdirs>0:devel/py-appdirs@${PY_FLAVO
 			${PYTHON_PKGNAMEPREFIX}pygslodeiv2>=0.9.1:math/py-pygslodeiv2@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}pyodeint>=0.10.1:math/py-pyodeint@${PY_FLAVOR}
 
-do-test: install # Tests fail because extra-dependencies are erroneously required: https://github.com/bjodah/pyodesys/issues/97
-	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest
-
 .include <bsd.port.mk>