Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2022 17:01:57 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3fd24909fb46 - main - devel/py-asynctest: Convert to USE_PYTHON=unittest
Message-ID:  <202206031701.253H1vUd050573@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

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

commit 3fd24909fb46000176bc1f04e94c16f5656c7b2b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-03 16:57:43 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-03 16:57:43 +0000

    devel/py-asynctest: Convert to USE_PYTHON=unittest
---
 devel/py-asynctest/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/devel/py-asynctest/Makefile b/devel/py-asynctest/Makefile
index a79016ef37ae..432932907c49 100644
--- a/devel/py-asynctest/Makefile
+++ b/devel/py-asynctest/Makefile
@@ -11,12 +11,12 @@ COMMENT=	Enhance unittest for testing asyncio libraries
 
 LICENSE=	APACHE20
 
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR}
+
 USES=		python:3.5+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent distutils unittest
 
 NO_ARCH=	yes
-
-do-test:
-	cd ${WRKSRC} && ${PYTHON_CMD} -m unittest -v test
+TEST_ARGS=	discover -s test
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206031701.253H1vUd050573>