From: Remi Gacogne Date: Fri, 18 Aug 2023 06:36:19 +0000 (+0200) Subject: dnsdist: Fix a deprecation warning in the XPF regression tests X-Git-Tag: rec-5.0.0-alpha1~35^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee34faac7b296c9eebd18f290c76d02f7c706437;p=thirdparty%2Fpdns.git dnsdist: Fix a deprecation warning in the XPF regression tests --- diff --git a/regression-tests.dnsdist/test_XPF.py b/regression-tests.dnsdist/test_XPF.py index 84e1c8e1aa..934ad50d94 100644 --- a/regression-tests.dnsdist/test_XPF.py +++ b/regression-tests.dnsdist/test_XPF.py @@ -39,7 +39,7 @@ class XPFTest(DNSDistTest): expectedQuery = dns.message.make_query(name, 'A', 'IN') # 0x04 is IPv4, 0x11 (17) is UDP then 127.0.0.1 as source and destination # and finally the ports, zeroed because we have no way to know them beforehand - xpfData = "\# 14 04117f0000017f00000100000000" + xpfData = "\\# 14 04117f0000017f00000100000000" rdata = dns.rdata.from_text(dns.rdataclass.IN, self._xpfCode, xpfData) rrset = dns.rrset.from_rdata(".", 0, rdata) expectedQuery.additional.append(rrset) @@ -58,7 +58,7 @@ class XPFTest(DNSDistTest): expectedQuery = dns.message.make_query(name, 'A', 'IN') # 0x04 is IPv4, 0x06 (6) is TCP then 127.0.0.1 as source and destination # and finally the ports, zeroed because we have no way to know them beforehand - xpfData = "\# 14 04067f0000017f00000100000000" + xpfData = "\\# 14 04067f0000017f00000100000000" rdata = dns.rdata.from_text(dns.rdataclass.IN, self._xpfCode, xpfData) rrset = dns.rrset.from_rdata(".", 0, rdata) expectedQuery.additional.append(rrset)