Files
meta-openembedded/meta-python/recipes-devtools/python/python3-dnspython_2.8.0.bb
T
Khem Raj 73caca3af7 python3-dnspython: Retry socket timeouts in ptests
testQueryUDPFallbackWithSocket fails intermittently because it connects
its TCP socket with a 2s socket timeout, and the resulting TimeoutError
is not dns.exception.Timeout, so the test's retry_on_timeout decorator
does not retry it. Retry TimeoutError too and give the connect the same
4s budget as the query.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-11-12 23:24:51 -08:00

41 lines
930 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 \
file://0001-tests-retry-socket-timeouts-in-retry_on_timeout.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 \
"