summaryrefslogtreecommitdiff
path: root/tests/test_nsec3_hash.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-04-02 09:08:34 -0700
committerBob Halley <halley@dnspython.org>2020-04-02 09:08:34 -0700
commit512d694fcd2960c33994f9b3d294ba55bf1680c6 (patch)
treeb332ca5c2c0c492fea10219b6b72fa481e6d18b4 /tests/test_nsec3_hash.py
parent830400c9bb1c3bc28a492b105b198574309308fb (diff)
downloaddnspython-512d694fcd2960c33994f9b3d294ba55bf1680c6.tar.gz
python 3.5 compatibility
Diffstat (limited to 'tests/test_nsec3_hash.py')
-rw-r--r--tests/test_nsec3_hash.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_nsec3_hash.py b/tests/test_nsec3_hash.py
index f2a3a7a..c242a81 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 = (