Skip to content

Commit 8834023

Browse files
committed
hashlib: Only import pure Python hashlib when running test.
Signed-off-by: Damien George <damien@micropython.org>
1 parent f1c7f28 commit 8834023

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python-stdlib/hashlib/tests/test_sha256.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Prevent importing any built-in hashes, so this test tests only the pure Python hashes.
2+
import sys
3+
sys.modules['uhashlib'] = sys
4+
15
import unittest
26
from hashlib import sha256
37

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy