mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +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
|
|
@ -9,6 +9,7 @@ import unittest
|
|||
import hashlib
|
||||
|
||||
from test import support
|
||||
from test.support import hashlib_helper
|
||||
|
||||
try:
|
||||
import ssl
|
||||
|
|
@ -322,7 +323,7 @@ class ProxyAuthTests(unittest.TestCase):
|
|||
PASSWD = "test123"
|
||||
REALM = "TestRealm"
|
||||
|
||||
@support.requires_hashdigest("md5")
|
||||
@hashlib_helper.requires_hashdigest("md5")
|
||||
def setUp(self):
|
||||
super(ProxyAuthTests, self).setUp()
|
||||
# Ignore proxy bypass settings in the environment.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue