Files
meta-openembedded/meta-python/recipes-devtools/python/python3-dnspython_2.8.0.bb
T
Khem Raj 084f3411c7 python3-dnspython: skip DDR tests when DDR is not available
test_basic_ddr_sync and test_basic_ddr_async only check that the
Internet is reachable. On networks that intercept port 53, 1.1.1.1 and
8.8.8.8 still answer ordinary queries but return NXDOMAIN for
_dns.resolver.arpa SVCB, so try_ddr() cannot upgrade the nameservers
and the tests fail:

  FAIL: tests/test_ddr.py:test_basic_ddr_sync
  FAIL: tests/test_ddr.py:test_basic_ddr_async
  assert isinstance('1.1.1.1', dns.nameserver.Nameserver)

Add a patch to skip them unless both resolvers return DDR SVCB records.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-09-12 16:52:16 -07:00

40 lines
861 B
BlitzBasic

DESCRIPTION = "DNS toolkit for Python"
HOMEPAGE = "https://www.dnspython.org/"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5af50906b5929837f667dfe31052bd34"
SRC_URI[sha256sum] = "181d3c6996452cb1189c4046c61599b84a5a86e099562ffde77d26984ff26d0f"
CVE_PRODUCT = "dnspython"
inherit pypi python_hatchling ptest
SRC_URI += " \
file://run-ptest \
file://0001-tests-skip-DDR-tests-when-the-resolvers-do-not-answe.patch \
"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}
DEPENDS += "\
python3-wheel-native \
python3-setuptools-scm-native \
"
RDEPENDS:${PN} += " \
python3-crypt \
python3-io \
python3-math \
python3-netclient \
python3-numbers \
python3-threading \
"