Unverified Kaydet (Commit) 95441809 authored tarafından Benjamin Peterson's avatar Benjamin Peterson Kaydeden (comit) GitHub

closes bpo-32721: do not fail test_hashlib if _md5 isn't available (GH-5441)

üst 3d86e484
......@@ -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
......
Fix test_hashlib to not fail if the _md5 module is not built.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment