Skip to content

Commit 6b2bbcc

Browse files
closes bpo-32721: do not fail test_hashlib if _md5 isn't available (GH-5441) (GH-5442)
(cherry picked from commit 9544180) Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent 88fa79a commit 6b2bbcc

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_hashlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def test_get_builtin_constructor(self):
196196
try:
197197
import _md5
198198
except ImportError:
199-
pass
199+
self.skipTest("_md5 module not available")
200200
# This forces an ImportError for "import _md5" statements
201201
sys.modules['_md5'] = None
202202
# clear the cache
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix test_hashlib to not fail if the _md5 module is not built.

0 commit comments

Comments
 (0)