summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_smtplib.py
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_smtplib.py
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_smtplib.py')
-rw-r--r--Lib/test/test_smtplib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py
index c1bd2e2..5762999 100644
--- a/Lib/test/test_smtplib.py
+++ b/Lib/test/test_smtplib.py
@@ -1067,6 +1067,7 @@ class SMTPSimTests(unittest.TestCase):
self.assertEqual(resp, (235, b'Authentication Succeeded'))
smtp.close()
+ @hashlib_helper.requires_hashdigest('md5')
def testAUTH_multiple(self):
# Test that multiple authentication methods are tried.
self.serv.add_feature("AUTH BOGUS PLAIN LOGIN CRAM-MD5")