New submission from Serhiy Storchaka: 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. ---------- components: Tests files: test_hmac_warnings.patch keywords: patch messages: 204272 nosy: christian.heimes, gregory.p.smith, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Deprecation warnings in test_hmac type: behavior versions: Python 3.4 Added file: http://bugs.python.org/file32824/test_hmac_warnings.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19759> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com