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

This commit is contained in:
Benjamin Peterson 2018-01-29 22:14:17 -08:00 committed by GitHub
parent 3d86e484de
commit 95441809ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

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