From: Otto Moerbeek Date: Wed, 14 Jun 2023 07:06:23 +0000 (+0200) Subject: Skip a test_EDNS.py test that hits a python 3.11 issue X-Git-Tag: rec-5.0.0-alpha1~118^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32d02dba4e567e1a6aebad5e7d9398942a1c7814;p=thirdparty%2Fpdns.git Skip a test_EDNS.py test that hits a python 3.11 issue See https://github.com/PowerDNS/pdns/pull/12912 --- diff --git a/regression-tests.recursor-dnssec/printlogs.py b/regression-tests.recursor-dnssec/printlogs.py index 2c9065f735..3058cd7ff8 100755 --- a/regression-tests.recursor-dnssec/printlogs.py +++ b/regression-tests.recursor-dnssec/printlogs.py @@ -5,7 +5,7 @@ import xml.etree.ElementTree import os.path import glob -e = xml.etree.ElementTree.parse('pysetest.xml') +e = xml.etree.ElementTree.parse('pytest.xml') root = e.getroot() for child in root: diff --git a/regression-tests.recursor-dnssec/test_EDNS.py b/regression-tests.recursor-dnssec/test_EDNS.py index aab1782492..172ab39803 100644 --- a/regression-tests.recursor-dnssec/test_EDNS.py +++ b/regression-tests.recursor-dnssec/test_EDNS.py @@ -4,6 +4,8 @@ import socket import struct import threading import time +import sys +from unittest import SkipTest from recursortests import RecursorTest from twisted.internet.protocol import DatagramProtocol @@ -35,6 +37,8 @@ class EDNSTest(RecursorTest): Ensure the rcode is BADVERS when we send an unsupported EDNS version and the query is not processed any further. """ + if sys.version_info >= (3, 11) and sys.version_info <= (3, 11, 3): + raise SkipTest("Test skipped, see https://github.com/PowerDNS/pdns/pull/12912") query = dns.message.make_query('version.bind.', 'TXT', 'CH', use_edns=5, payload=4096) response = self.sendUDPQuery(query)