From d6f48c52567bd01e929f61f0f32a751029b9d120 Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Thu, 8 May 2025 17:24:01 +0800 Subject: [PATCH] skip testResolveTCP on loongarch64 (cherry picked from commit 224c4965968c227bdf1eb06d3f3fc39590026aff) --- python-dns.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/python-dns.spec b/python-dns.spec index 3539179..2f6adff 100644 --- a/python-dns.spec +++ b/python-dns.spec @@ -14,7 +14,7 @@ messages, names, and records. Name: python-dns Summary: %{sum} Version: 2.4.2 -Release: 3 +Release: 4 License: ISC and MIT URL: http://www.dnspython.org/ Source0: https://github.com/rthalley/dnspython/archive/v%{version}/dnspython-%{version}.tar.gz @@ -67,7 +67,11 @@ if [ "root" == "$(whoami)" ];then pytest sed -i "2d" /etc/resolv.conf else - pytest +if [ "loongarch64" == "$(uname -m)" ];then + pytest -k "not testResolveTCP" +else + pytest +fi fi %files -n python3-dns @@ -79,6 +83,9 @@ fi %doc examples %changelog +* Thu May 8 2025 Wenlong Zhang - 2.4.2-3 +- skip testResolveTCP on loongarch64 + * Mon Dec 02 2024 gaihuiying - 2.4.2-3 - fix building error -- Gitee