bpo-40275: Move requires_hashdigest() to test.support.hashlib_helper (GH-19716)
Add a new test.support.hashlib_helper submodule.
diff --git a/Lib/test/test_poplib.py b/Lib/test/test_poplib.py
index d4877b1..b670afc 100644
--- a/Lib/test/test_poplib.py
+++ b/Lib/test/test_poplib.py
@@ -13,6 +13,7 @@
from unittest import TestCase, skipUnless
from test import support as test_support
+from test.support import hashlib_helper
from test.support import socket_helper
HOST = socket_helper.HOST
@@ -311,11 +312,11 @@
def test_rpop(self):
self.assertOK(self.client.rpop('foo'))
- @test_support.requires_hashdigest('md5')
+ @hashlib_helper.requires_hashdigest('md5')
def test_apop_normal(self):
self.assertOK(self.client.apop('foo', 'dummypassword'))
- @test_support.requires_hashdigest('md5')
+ @hashlib_helper.requires_hashdigest('md5')
def test_apop_REDOS(self):
# Replace welcome with very long evil welcome.
# NB The upper bound on welcome length is currently 2048.