Skip to content

Commit

Permalink
hashlib: Only import pure Python hashlib when running test.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <[email protected]>
  • Loading branch information
dpgeorge committed Jun 17, 2024
1 parent f1c7f28 commit 8834023
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python-stdlib/hashlib/tests/test_sha256.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 8834023

Please sign in to comment.