mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Also fixes test_hashlib for the different extension module names in py3k.
Merged revisions 77251 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77251 | gregory.p.smith | 2010-01-02 14:25:29 -0800 (Sat, 02 Jan 2010) | 6 lines Always compile the all versions of the hashlib algorithm modules when Python was compiled with Py_DEBUG defined. Otherwise the builtins are not compiled by default for many developers due to OpenSSL being present, making it easier for bugs to slip by. A future commit will add test code compare the behaviors of all implementations when they are all available. ........
This commit is contained in:
parent
cd54e546bb
commit
b04ded4927
2 changed files with 16 additions and 10 deletions
|
@ -78,10 +78,10 @@ class HashLibTestCase(unittest.TestCase):
|
|||
|
||||
_md5 = self._conditional_import_module('_md5')
|
||||
if _md5:
|
||||
self.constructors_to_test['md5'].add(_md5.new)
|
||||
_sha = self._conditional_import_module('_sha')
|
||||
if _sha:
|
||||
self.constructors_to_test['sha1'].add(_sha.new)
|
||||
self.constructors_to_test['md5'].add(_md5.md5)
|
||||
_sha1 = self._conditional_import_module('_sha1')
|
||||
if _sha1:
|
||||
self.constructors_to_test['sha1'].add(_sha1.sha1)
|
||||
_sha256 = self._conditional_import_module('_sha256')
|
||||
if _sha256:
|
||||
self.constructors_to_test['sha224'].add(_sha256.sha224)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue