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:
Miss Islington (bot) 2018-01-29 23:01:32 -08:00 committed by Benjamin Peterson
parent 88fa79a10a
commit 6b2bbcc4cc
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -0,0 +1 @@
Fix test_hashlib to not fail if the _md5 module is not built.