]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix a deprecation warning in the XPF regression tests
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 18 Aug 2023 06:36:19 +0000 (08:36 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 18 Aug 2023 07:12:38 +0000 (09:12 +0200)
regression-tests.dnsdist/test_XPF.py

index 84e1c8e1aa638ff0bc1623fea8f9e3eca7f5e824..934ad50d9475f360eafc5c33dc434f0c334b35be 100644 (file)
@@ -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)