mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-40275: Move requires_hashdigest() to test.support.hashlib_helper (GH-19716)
Add a new test.support.hashlib_helper submodule.
This commit is contained in:
parent
2208134918
commit
66abe98a81
9 changed files with 71 additions and 68 deletions
|
@ -13,6 +13,7 @@ import threading
|
|||
|
||||
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 @@ class TestPOP3Class(TestCase):
|
|||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue