Kaydet (Commit) 6b2bbcc4 authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) Benjamin Peterson

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

(cherry picked from commit 95441809)
Co-authored-by: 's avatarBenjamin Peterson <benjamin@python.org>
üst 88fa79a1
...@@ -196,7 +196,7 @@ class HashLibTestCase(unittest.TestCase): ...@@ -196,7 +196,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