Skip to content
Snippets Groups Projects
Commit c8b0229b authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests: sha256: skip test if uhashlib module is not available.

parent 5cf7ac73
No related branches found
No related tags found
No related merge requests found
import sys
try:
import uhashlib as hashlib
except ImportError:
import hashlib
try:
import hashlib
except ImportError:
# This is neither uPy, nor cPy, so must be uPy with
# uhashlib module disabled.
print("SKIP")
sys.exit()
h = hashlib.sha256()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment