Commit 95441809 authored by Benjamin Peterson's avatar Benjamin Peterson Committed by GitHub

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

parent 3d86e484
...@@ -193,7 +193,7 @@ class HashLibTestCase(unittest.TestCase): ...@@ -193,7 +193,7 @@ class HashLibTestCase(unittest.TestCase):
try: try:
import _md5 import _md5
except ImportError: except ImportError:
pass self.skipTest("_md5 module not available")
# This forces an ImportError for "import _md5" statements # This forces an ImportError for "import _md5" statements
sys.modules['_md5'] = None sys.modules['_md5'] = None
# clear the cache # 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