summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2019-09-25 14:30:20 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-09-25 14:30:20 (GMT)
commitc64a1a61e6fc542cada40eb069a239317e1af36e (patch)
treed4f780b036c5f2b3ba66df525a7a535058bd887d /Misc
parent417089e88bd4ea146b9497e06e8edeb58a59cd65 (diff)
downloadcpython-c64a1a61e6fc542cada40eb069a239317e1af36e.zip
cpython-c64a1a61e6fc542cada40eb069a239317e1af36e.tar.gz
cpython-c64a1a61e6fc542cada40eb069a239317e1af36e.tar.bz2
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
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Tests/2019-09-25-12-18-31.bpo-38270._x-9uH.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2019-09-25-12-18-31.bpo-38270._x-9uH.rst b/Misc/NEWS.d/next/Tests/2019-09-25-12-18-31.bpo-38270._x-9uH.rst
new file mode 100644
index 0000000..efb1b98
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2019-09-25-12-18-31.bpo-38270._x-9uH.rst
@@ -0,0 +1,4 @@
+test.support now has a helper function to check for availibility of a
+hash digest function. Several tests are refactored avoid MD5 and use
+SHA256 instead. Other tests are marked to use MD5 and skipped when MD5 is
+disabled.