From 88ed139170073134ddbc615af769a556d4a86994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 31 May 2025 08:06:18 +0200 Subject: [PATCH] dev-python/ldap3: Enable (offline) testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/ldap3/ldap3-2.9.1.ebuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dev-python/ldap3/ldap3-2.9.1.ebuild b/dev-python/ldap3/ldap3-2.9.1.ebuild index 70f15ed8be454..3a2fbc9938383 100644 --- a/dev-python/ldap3/ldap3-2.9.1.ebuild +++ b/dev-python/ldap3/ldap3-2.9.1.ebuild @@ -22,9 +22,15 @@ LICENSE="LGPL-3" SLOT="0" KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv x86" -# tests require a ldap server and extra configuration -RESTRICT="test" - RDEPEND=" >=dev-python/pyasn1-0.4.8[${PYTHON_USEDEP}] " + +distutils_enable_tests unittest + +python_test() { + # offline testing only + local -x SERVER=NONE + + eunittest +}