Skip to content

Commit

Permalink
Skip a test_EDNS.py test that hits a python 3.11 issue
Browse files Browse the repository at this point in the history
See #12912
  • Loading branch information
omoerbeek committed Jun 14, 2023
1 parent 1325b6a commit 32d02db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion regression-tests.recursor-dnssec/printlogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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:
Expand Down
4 changes: 4 additions & 0 deletions regression-tests.recursor-dnssec/test_EDNS.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import struct
import threading
import time
import sys
from unittest import SkipTest

from recursortests import RecursorTest
from twisted.internet.protocol import DatagramProtocol
Expand Down Expand Up @@ -35,6 +37,8 @@ def testEDNSBadVers(self):
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)
Expand Down

0 comments on commit 32d02db

Please sign in to comment.