From: Bob Halley Date: Thu, 2 Apr 2020 16:08:34 +0000 (-0700) Subject: python 3.5 compatibility X-Git-Tag: v2.0.0rc1~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=512d694fcd2960c33994f9b3d294ba55bf1680c6;p=thirdparty%2Fdnspython.git python 3.5 compatibility --- diff --git a/tests/test_nsec3_hash.py b/tests/test_nsec3_hash.py index f2a3a7a8..c242a819 100644 --- a/tests/test_nsec3_hash.py +++ b/tests/test_nsec3_hash.py @@ -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 = (