]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
python 3.5 compatibility
authorBob Halley <halley@dnspython.org>
Thu, 2 Apr 2020 16:08:34 +0000 (09:08 -0700)
committerBob Halley <halley@dnspython.org>
Thu, 2 Apr 2020 16:08:34 +0000 (09:08 -0700)
tests/test_nsec3_hash.py

index f2a3a7a8d35aaa071404961ca54348a483c93ba0..c242a819d48ddbba1b5b188059842a66e16832f9 100644 (file)
@@ -38,7 +38,7 @@ class NSEC3Hash(unittest.TestCase):
     def test_hash_function(self):
         for d in self.DATA:
             hash = dnssec.nsec3_hash(d[0], d[1], d[2], d[4])
-            self.assertEqual(hash, d[3].upper(), f"Error {d}")
+            self.assertEqual(hash, d[3].upper(), "Error {}".format(d))
 
     def test_hash_invalid_salt_length(self):
         data = (