kopia lustrzana https://github.com/micropython/micropython-lib
hashlib: Only import pure Python hashlib when running test.
Signed-off-by: Damien George <damien@micropython.org>pull/883/head
rodzic
f1c7f2885d
commit
8834023d05
|
@ -1,3 +1,7 @@
|
|||
# Prevent importing any built-in hashes, so this test tests only the pure Python hashes.
|
||||
import sys
|
||||
sys.modules['uhashlib'] = sys
|
||||
|
||||
import unittest
|
||||
from hashlib import sha256
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue