summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-01-30 06:14:17 (GMT)
committerGitHub <noreply@github.com>2018-01-30 06:14:17 (GMT)
commit95441809ef77a8df5e14601ade6c054ef7114c02 (patch)
tree57bb1410ed394e0b129176d880c54ed10ecbc6af /Lib
parent3d86e484de6334fe16cbab512744597bd0de4e80 (diff)
downloadcpython-95441809ef77a8df5e14601ade6c054ef7114c02.zip
cpython-95441809ef77a8df5e14601ade6c054ef7114c02.tar.gz
cpython-95441809ef77a8df5e14601ade6c054ef7114c02.tar.bz2
closes bpo-32721: do not fail test_hashlib if _md5 isn't available (GH-5441)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_hashlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py
index 15fc22b..751f748 100644
--- a/Lib/test/test_hashlib.py
+++ b/Lib/test/test_hashlib.py
@@ -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