Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
95441809
Commit
95441809
authored
Jan 29, 2018
by
Benjamin Peterson
Committed by
GitHub
Jan 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
closes bpo-32721: do not fail test_hashlib if _md5 isn't available (GH-5441)
parent
3d86e484
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
Lib/test/test_hashlib.py
Lib/test/test_hashlib.py
+1
-1
Misc/NEWS.d/next/Tests/2018-01-29-21-30-44.bpo-32721.2Bebm1.rst
...EWS.d/next/Tests/2018-01-29-21-30-44.bpo-32721.2Bebm1.rst
+1
-0
No files found.
Lib/test/test_hashlib.py
View file @
95441809
...
...
@@ -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
...
...
Misc/NEWS.d/next/Tests/2018-01-29-21-30-44.bpo-32721.2Bebm1.rst
0 → 100644
View file @
95441809
Fix test_hashlib to not fail if the _md5 module is not built.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment