git: 5bffa99bf3f4 - main - math/py-gmpy2: Fix tests

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 27 Mar 2023 07:26:11 UTC
The branch main has been updated by yuri:

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

commit 5bffa99bf3f4c20d1164df9a822f7de9d6994979
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-03-27 07:14:30 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-03-27 07:14:30 +0000

    math/py-gmpy2: Fix tests
---
 math/py-gmpy2/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/math/py-gmpy2/Makefile b/math/py-gmpy2/Makefile
index 07be6ff81587..2e1787e26c7a 100644
--- a/math/py-gmpy2/Makefile
+++ b/math/py-gmpy2/Makefile
@@ -16,14 +16,14 @@ LIB_DEPENDS=	libgmp.so:math/gmp \
 		libmpfr.so:math/mpfr
 
 USES=		localbase python
-USE_PYTHON=	distutils autoplist pytest # 2 tests fail, see https://github.com/aleaxit/gmpy/issues/403
+USE_PYTHON=	distutils autoplist
 
 TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/gmpy2/gmpy2*.so
 
-do-test:
-	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest
+do-test: # pytest isn't currently supported, see https://github.com/aleaxit/gmpy/issues/403#issuecomment-1484584428
+	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} test/runtests.py
 
 .include <bsd.port.mk>