hashlib: Only import pure Python hashlib when running test.

Signed-off-by: Damien George <damien@micropython.org>
pull/883/head
Damien George 2024-06-17 11:16:53 +10:00
rodzic f1c7f2885d
commit 8834023d05
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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 import unittest
from hashlib import sha256 from hashlib import sha256