mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
closes bpo-32721: do not fail test_hashlib if _md5 isn't available (GH-5441)
This commit is contained in:
parent
3d86e484de
commit
95441809ef
2 changed files with 2 additions and 1 deletions
|
@ -193,7 +193,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue