From 3aa0379a50c75647320edc9db190b4f27fb3c269 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 4 Aug 2020 06:48:09 -0700 Subject: [PATCH] fix loc version not zero test --- tests/test_rdata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_rdata.py b/tests/test_rdata.py index 31b5a859..0c98760b 100644 --- a/tests/test_rdata.py +++ b/tests/test_rdata.py @@ -375,7 +375,7 @@ class RdataTestCase(unittest.TestCase): dns.rdata.from_wire(dns.rdataclass.IN, dns.rdatatype.LOC, wire, 0, len(wire)) with self.assertRaises(dns.exception.FormError): - wire = b'\x01' + wire = struct.pack('!BBBBIII', 1, 0, 0, 0, 0, 0, 0) dns.rdata.from_wire(dns.rdataclass.IN, dns.rdatatype.LOC, wire, 0, len(wire)) -- 2.47.3