diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-04-29 09:11:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 03:11:29 +0200 |
commit | 66abe98a816de84f89e2de4aa78cf09056227c25 (patch) | |
tree | 2fc26658b4c09caf1ade36a8e0e45759232adf4e /Lib/test/test_smtplib.py | |
parent | 2208134918ee673451e4fc525bbeab71142d794a (diff) | |
download | cpython-git-66abe98a816de84f89e2de4aa78cf09056227c25.tar.gz |
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_smtplib.py')
-rw-r--r-- | Lib/test/test_smtplib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py index d1ffb368a4..c1bd2e2912 100644 --- a/Lib/test/test_smtplib.py +++ b/Lib/test/test_smtplib.py @@ -20,9 +20,9 @@ import threading import unittest from test import support, mock_socket +from test.support import hashlib_helper from test.support import socket_helper from test.support import threading_setup, threading_cleanup, join_thread -from test.support import requires_hashdigest from unittest.mock import Mock HOST = socket_helper.HOST @@ -1058,7 +1058,7 @@ class SMTPSimTests(unittest.TestCase): self.assertEqual(resp, (235, b'Authentication Succeeded')) smtp.close() - @requires_hashdigest('md5') + @hashlib_helper.requires_hashdigest('md5') def testAUTH_CRAM_MD5(self): self.serv.add_feature("AUTH CRAM-MD5") smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', |