diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-12-18 00:31:49 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-12-18 00:32:15 +0200 |
commit | c8b0229bc7c615a636c05442e3ad590fb7cc0ec0 (patch) | |
tree | b8c09e1850790aa7048b3d38e873490274d31f0e /tests | |
parent | 5cf7ac7309110a92fa398763d02cdd215d74797e (diff) | |
download | micropython-c8b0229bc7c615a636c05442e3ad590fb7cc0ec0.tar.gz micropython-c8b0229bc7c615a636c05442e3ad590fb7cc0ec0.zip |
tests: sha256: skip test if uhashlib module is not available.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/extmod/sha256.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/extmod/sha256.py b/tests/extmod/sha256.py index f74a7da224..ff51f2ffa5 100644 --- a/tests/extmod/sha256.py +++ b/tests/extmod/sha256.py @@ -1,7 +1,14 @@ +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() |