mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
closes bpo-32721: do not fail test_hashlib if _md5 isn't available (GH-5441) (GH-5442)
(cherry picked from commit 95441809ef
)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
This commit is contained in:
parent
88fa79a10a
commit
6b2bbcc4cc
2 changed files with 2 additions and 1 deletions
|
@ -196,7 +196,7 @@ class HashLibTestCase(unittest.TestCase):
|
|||
try:
|
||||
import _md5
|
||||
except ImportError:
|
||||
pass
|
||||
self.skipTest("_md5 module not available")
|
||||
# This forces an ImportError for "import _md5" statements
|
||||
sys.modules['_md5'] = None
|
||||
# clear the cache
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Fix test_hashlib to not fail if the _md5 module is not built.
|
Loading…
Add table
Add a link
Reference in a new issue