summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tools
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2020-05-22 18:04:33 (GMT)
committerGitHub <noreply@github.com>2020-05-22 18:04:33 (GMT)
commit909b5714e1303357868bc5e281c1cf508d5d5a17 (patch)
tree107c672bb4d36471411b2c05333589bfa5dc8ade /Lib/test/test_tools
parent06a1b8915d6674e40f0dccc422ca2c06212392d8 (diff)
downloadcpython-909b5714e1303357868bc5e281c1cf508d5d5a17.zip
cpython-909b5714e1303357868bc5e281c1cf508d5d5a17.tar.gz
cpython-909b5714e1303357868bc5e281c1cf508d5d5a17.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
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):