git: e95c5bc9d92a - main - devel/py-preshed: Fix tests

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 02 May 2023 15:39:04 UTC
The branch main has been updated by yuri:

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

commit e95c5bc9d92a0a79e4fdeffdec2850e2e2c531b8
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-05-02 15:38:42 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-05-02 15:39:00 +0000

    devel/py-preshed: Fix tests
---
 devel/py-preshed/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/devel/py-preshed/Makefile b/devel/py-preshed/Makefile
index d84968a41a0d..78b61cb0cfd0 100644
--- a/devel/py-preshed/Makefile
+++ b/devel/py-preshed/Makefile
@@ -18,11 +18,14 @@ BUILD_DEPENDS=	${PY_DEPENDS} \
 RUN_DEPENDS=	${PY_DEPENDS}
 
 USES=		python:3.6+
-USE_PYTHON=	pep517 cython autoplist pytest # tests fail, see https://github.com/explosion/preshed/issues/45
+USE_PYTHON=	pep517 cython autoplist pytest
 
 TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/preshed/*.so
 
+do-test:
+	@cd ${WRKDIR} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest --pyargs preshed
+
 .include <bsd.port.mk>