mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-33604: Remove Pending from hmac Deprecation warning. (GH-7062)
bpo-33604: Bump removal notice from 3.6 to 3.8 and change PendingDeprecationWarning to DeprecationWarning as we had intended to do earlier...
This commit is contained in:
parent
e8eb6cb792
commit
8bb0b5b03c
4 changed files with 9 additions and 6 deletions
|
@ -12,7 +12,7 @@ def ignore_warning(func):
|
|||
def wrapper(*args, **kwargs):
|
||||
with warnings.catch_warnings():
|
||||
warnings.filterwarnings("ignore",
|
||||
category=PendingDeprecationWarning)
|
||||
category=DeprecationWarning)
|
||||
return func(*args, **kwargs)
|
||||
return wrapper
|
||||
|
||||
|
@ -303,7 +303,7 @@ class TestVectorsTestCase(unittest.TestCase):
|
|||
self.fail('Expected warning about small block_size')
|
||||
|
||||
def test_with_digestmod_warning(self):
|
||||
with self.assertWarns(PendingDeprecationWarning):
|
||||
with self.assertWarns(DeprecationWarning):
|
||||
key = b"\x0b" * 16
|
||||
data = b"Hi There"
|
||||
digest = "9294727A3638BB1C13F48EF8158BFC9D"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue