]> granicus.if.org Git - python/commit
bpo-38270: Check for hash digest algorithms and avoid MD5 (GH-16382)
authorChristian Heimes <christian@python.org>
Wed, 25 Sep 2019 14:30:20 +0000 (16:30 +0200)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 25 Sep 2019 14:30:20 +0000 (07:30 -0700)
commitc64a1a61e6fc542cada40eb069a239317e1af36e
treed4f780b036c5f2b3ba66df525a7a535058bd887d
parent417089e88bd4ea146b9497e06e8edeb58a59cd65
bpo-38270: Check for hash digest algorithms and avoid MD5 (GH-16382)

Make it easier to run and test Python on systems with restrict crypto policies:

* add requires_hashdigest to test.support to check if a hash digest algorithm is available and working
* avoid MD5 in test_hmac
* replace MD5 with SHA256 in test_tarfile
* mark network tests that require MD5 for MD5-based digest auth or CRAM-MD5

https://bugs.python.org/issue38270
Lib/test/support/__init__.py
Lib/test/test_hmac.py
Lib/test/test_imaplib.py
Lib/test/test_poplib.py
Lib/test/test_smtplib.py
Lib/test/test_tarfile.py
Lib/test/test_urllib2_localnet.py
Misc/NEWS.d/next/Tests/2019-09-25-12-18-31.bpo-38270._x-9uH.rst [new file with mode: 0644]