diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-04-29 01:11:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 01:11:29 (GMT) |
commit | 66abe98a816de84f89e2de4aa78cf09056227c25 (patch) | |
tree | 2fc26658b4c09caf1ade36a8e0e45759232adf4e /Lib/test/test_poplib.py | |
parent | 2208134918ee673451e4fc525bbeab71142d794a (diff) | |
download | cpython-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_poplib.py')
-rw-r--r-- | Lib/test/test_poplib.py | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ 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. |