Skip to content

Commit 8834023

Browse files
committed
hashlib: Only import pure Python hashlib when running test.
Signed-off-by: Damien George <[email protected]>
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

+4
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)