diff --git a/devel/py-lxml-html-clean/Makefile b/devel/py-lxml-html-clean/Makefile
index e023637b84c7..51033a6ea298 100644
--- a/devel/py-lxml-html-clean/Makefile
+++ b/devel/py-lxml-html-clean/Makefile
@@ -1,19 +1,21 @@
PORTNAME= lxml-html-clean
PORTVERSION= 0.4.1
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:S/-/_/g}-${PORTVERSION}
MAINTAINER= acm@FreeBSD.org
COMMENT= HTML cleaner from lxml project
WWW= https://github.com/fedora-python/lxml_html_clean/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml5>0:devel/py-lxml5@${PY_FLAVOR}
+
USES= python
-USE_PYTHON= autoplist distutils
+USE_PYTHON= autoplist distutils pytest
.include