summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_smtplib.py
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_smtplib.py
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_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")