Skip to content

Commit

Permalink
tests/extmod/uhashlib_final.py: Apply code formatting.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed May 25, 2021
1 parent 885a90c commit b70a74d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/extmod/uhashlib_final.py
Expand Up @@ -11,22 +11,22 @@
continue

# Running .digest() several times in row is not supported.
h = algo(b'123')
h = algo(b"123")
h.digest()
try:
h.digest()
print('fail')
print("fail")
except ValueError:
# Expected path, don't print anything so test output is the
# same even if the algorithm is not implemented on the port.
pass

# Partial digests are not supported.
h = algo(b'123')
h = algo(b"123")
h.digest()
try:
h.update(b'456')
print('fail')
h.update(b"456")
print("fail")
except ValueError:
# Expected path, don't print anything so test output is the
# same even if the algorithm is not implemented on the port.
Expand Down

0 comments on commit b70a74d

Please sign in to comment.