summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2_localnet.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-04-29 01:11:29 (GMT)
committerGitHub <noreply@github.com>2020-04-29 01:11:29 (GMT)
commit66abe98a816de84f89e2de4aa78cf09056227c25 (patch)
tree2fc26658b4c09caf1ade36a8e0e45759232adf4e /Lib/test/test_urllib2_localnet.py
parent2208134918ee673451e4fc525bbeab71142d794a (diff)
downloadcpython-66abe98a816de84f89e2de4aa78cf09056227c25.zip
cpython-66abe98a816de84f89e2de4aa78cf09056227c25.tar.gz
cpython-66abe98a816de84f89e2de4aa78cf09056227c25.tar.bz2
bpo-40275: Move requires_hashdigest() to test.support.hashlib_helper (GH-19716)
Add a new test.support.hashlib_helper submodule.
Diffstat (limited to 'Lib/test/test_urllib2_localnet.py')
-rw-r--r--Lib/test/test_urllib2_localnet.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py
index 8cfb214..421b9f7 100644
--- a/Lib/test/test_urllib2_localnet.py
+++ b/Lib/test/test_urllib2_localnet.py
@@ -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.