From: Bob Halley Date: Tue, 4 Aug 2020 13:48:09 +0000 (-0700) Subject: fix loc version not zero test X-Git-Tag: v2.1.0rc1~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aa0379a50c75647320edc9db190b4f27fb3c269;p=thirdparty%2Fdnspython.git fix loc version not zero test --- 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))