summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tools
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-05-22 18:22:30 (GMT)
committerGitHub <noreply@github.com>2020-05-22 18:22:30 (GMT)
commita08b7c3bb0ef9da32400d23b13f78245cd7a9541 (patch)
tree136a3cdaeed598831d794f19003350d4dc2b87d4 /Lib/test/test_tools
parent983b17ca1319adf9f06d5f2779a44450241eba54 (diff)
downloadcpython-a08b7c3bb0ef9da32400d23b13f78245cd7a9541.zip
cpython-a08b7c3bb0ef9da32400d23b13f78245cd7a9541.tar.gz
cpython-a08b7c3bb0ef9da32400d23b13f78245cd7a9541.tar.bz2
bpo-9216: hashlib usedforsecurity fixes (GH-20258)
func:`hashlib.new` passed ``usedforsecurity`` to OpenSSL EVP constructor ``_hashlib.new()``. test_hashlib and test_smtplib handle strict security policy better. Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: @tiran (cherry picked from commit 909b5714e1303357868bc5e281c1cf508d5d5a17) Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/test/test_tools')
-rw-r--r--Lib/test/test_tools/test_md5sum.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_tools/test_md5sum.py b/Lib/test/test_tools/test_md5sum.py
index fb565b7..321bc4b 100644
--- a/Lib/test/test_tools/test_md5sum.py
+++ b/Lib/test/test_tools/test_md5sum.py
@@ -3,12 +3,14 @@
import os
import unittest
from test import support
+from test.support import hashlib_helper
from test.support.script_helper import assert_python_ok, assert_python_failure
from test.test_tools import scriptsdir, skip_if_missing
skip_if_missing()
+@hashlib_helper.requires_hashdigest('md5')
class MD5SumTests(unittest.TestCase):
@classmethod
def setUpClass(cls):