This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Deprecation warnings in test_hmac
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.4
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, gregory.p.smith, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2013-11-24 22:11 by serhiy.storchaka, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_hmac_warnings.patch serhiy.storchaka, 2013-11-24 22:11 review
Messages (2)
msg204272 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-11-24 22:11
Following warnings are emitted when test_hmac ran with -Wall:

$ ./python -Wall -m test.regrtest test_hmac
[1/1] test_hmac
/home/serhiy/py/cpython/Lib/test/test_hmac.py:271: PendingDeprecationWarning: HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:296: PendingDeprecationWarning: HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(bytearray(b"key"), bytearray(b"hash this!"))
/home/serhiy/py/cpython/Lib/test/test_hmac.py:303: PendingDeprecationWarning: HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"key", memoryview(b"hash this!"))
/home/serhiy/py/cpython/Lib/test/test_hmac.py:290: PendingDeprecationWarning: HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"key", b"hash this!")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:320: PendingDeprecationWarning: HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:327: PendingDeprecationWarning: HMAC() without an explicit digestmod argument is deprecated.
  h = hmac.HMAC(b"my secret key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:339: PendingDeprecationWarning: HMAC() without an explicit digestmod argument is deprecated.
  h1 = hmac.HMAC(b"key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:361: PendingDeprecationWarning: HMAC() without an explicit digestmod argument is deprecated.
  h1 = hmac.HMAC(b"key")
/home/serhiy/py/cpython/Lib/test/test_hmac.py:350: PendingDeprecationWarning: HMAC() without an explicit digestmod argument is deprecated.
  h1 = hmac.HMAC(b"key")
1 test OK.

The proposed patch silences these warnings.
msg204275 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-11-24 22:18
Crys just fixed this issue in issue19758.
History
Date User Action Args
2022-04-11 14:57:54adminsetgithub: 63958
2013-11-24 22:18:32serhiy.storchakasetstatus: open -> closed
resolution: out of date
messages: + msg204275

stage: patch review -> resolved
2013-11-24 22:11:43serhiy.storchakacreate