summaryrefslogtreecommitdiff
path: root/tests/extmod/uhashlib_sha1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/uhashlib_sha1.py')
-rw-r--r--tests/extmod/uhashlib_sha1.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/extmod/uhashlib_sha1.py b/tests/extmod/uhashlib_sha1.py
index 9d6427b33..a0ad8473a 100644
--- a/tests/extmod/uhashlib_sha1.py
+++ b/tests/extmod/uhashlib_sha1.py
@@ -16,13 +16,13 @@ except AttributeError:
print("SKIP")
raise SystemExit
-sha1 = hashlib.sha1(b'hello')
-sha1.update(b'world')
+sha1 = hashlib.sha1(b"hello")
+sha1.update(b"world")
print(sha1.digest())
-sha1 = hashlib.sha1(b'hello')
+sha1 = hashlib.sha1(b"hello")
try:
- sha1.update(u'world')
+ sha1.update(u"world")
except TypeError as e:
print("TypeError")
print(sha1.digest())