summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-01-30 07:01:32 (GMT)
committerBenjamin Peterson <benjamin@python.org>2018-01-30 07:01:32 (GMT)
commit6b2bbcc4cca414f35f67caa4674f59f41ff638ea (patch)
tree90aeb1285887d5046e4b526c117517f7c7e14a14 /Lib/test
parent88fa79a10a340439ed021fbc4988b6f3e73b2391 (diff)
downloadcpython-6b2bbcc4cca414f35f67caa4674f59f41ff638ea.zip
cpython-6b2bbcc4cca414f35f67caa4674f59f41ff638ea.tar.gz
cpython-6b2bbcc4cca414f35f67caa4674f59f41ff638ea.tar.bz2
closes bpo-32721: do not fail test_hashlib if _md5 isn't available (GH-5441) (GH-5442)
(cherry picked from commit 95441809ef77a8df5e14601ade6c054ef7114c02) Co-authored-by: Benjamin Peterson <benjamin@python.org>
Diffstat (limited to 'Lib/test')
-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 2861349..177143e 100644
--- a/Lib/test/test_hashlib.py
+++ b/Lib/test/test_hashlib.py
@@ -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