summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_poplib.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-01-13 08:46:38 (GMT)
committerGitHub <noreply@github.com>2022-01-13 08:46:38 (GMT)
commit443b308fee088e21bbf472c376c5c9e3648f916c (patch)
treed9a0955f1967f9febb6d17806eb7d0d18b55d2ba /Lib/test/test_poplib.py
parenta6ca8eee2254762422f90cf94fbaac34f85db780 (diff)
downloadcpython-443b308fee088e21bbf472c376c5c9e3648f916c.zip
cpython-443b308fee088e21bbf472c376c5c9e3648f916c.tar.gz
cpython-443b308fee088e21bbf472c376c5c9e3648f916c.tar.bz2
bpo-40479: Fix hashlib's usedforsecurity for OpenSSL 3.0.0 (GH-30455)
Diffstat (limited to 'Lib/test/test_poplib.py')
-rw-r--r--Lib/test/test_poplib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_poplib.py b/Lib/test/test_poplib.py
index 44cf523..1220ca3 100644
--- a/Lib/test/test_poplib.py
+++ b/Lib/test/test_poplib.py
@@ -318,11 +318,11 @@ class TestPOP3Class(TestCase):
def test_rpop(self):
self.assertOK(self.client.rpop('foo'))
- @hashlib_helper.requires_hashdigest('md5')
+ @hashlib_helper.requires_hashdigest('md5', openssl=True)
def test_apop_normal(self):
self.assertOK(self.client.apop('foo', 'dummypassword'))
- @hashlib_helper.requires_hashdigest('md5')
+ @hashlib_helper.requires_hashdigest('md5', openssl=True)
def test_apop_REDOS(self):
# Replace welcome with very long evil welcome.
# NB The upper bound on welcome length is currently 2048.