Content-Length: 250838 | pFad | http://github.com/multicoder9/micropython-lib/commit/8834023d05c3fb9467875bda372af3afae2d98e9

A3 hashlib: Only import pure Python hashlib when running test. · multicoder9/micropython-lib@8834023 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/multicoder9/micropython-lib/commit/8834023d05c3fb9467875bda372af3afae2d98e9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy