diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-28 09:51:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 09:51:13 (GMT) |
commit | 71d5299b73c854a7b0e12eb5d0a524579723660b (patch) | |
tree | 4b3c56052382756ef9c23698d27961ab25b18263 /Lib/test/test_hashlib.py | |
parent | 5c5fc9da3f91ac09f7f00ac644071cd5efb2eafe (diff) | |
download | cpython-71d5299b73c854a7b0e12eb5d0a524579723660b.zip cpython-71d5299b73c854a7b0e12eb5d0a524579723660b.tar.gz cpython-71d5299b73c854a7b0e12eb5d0a524579723660b.tar.bz2 |
gh-94199: Remove hashlib.pbkdf2_hmac() Python implementation (GH-94200)
Remove the pure Python implementation of hashlib.pbkdf2_hmac(),
deprecated in Python 3.10. Python 3.10 and newer requires OpenSSL
1.1.1 or newer (PEP 644), this OpenSSL version provides a C
implementation of pbkdf2_hmac() which is faster.
Diffstat (limited to 'Lib/test/test_hashlib.py')
-rw-r--r-- | Lib/test/test_hashlib.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py index bc9407d..450dc49 100644 --- a/Lib/test/test_hashlib.py +++ b/Lib/test/test_hashlib.py @@ -1096,15 +1096,7 @@ class KDFTests(unittest.TestCase): iterations=1, dklen=None) self.assertEqual(out, self.pbkdf2_results['sha1'][0][0]) - @unittest.skipIf(builtin_hashlib is None, "test requires builtin_hashlib") - def test_pbkdf2_hmac_py(self): - with warnings_helper.check_warnings(): - self._test_pbkdf2_hmac( - builtin_hashlib.pbkdf2_hmac, builtin_hashes - ) - - @unittest.skipUnless(hasattr(openssl_hashlib, 'pbkdf2_hmac'), - ' test requires OpenSSL > 1.0') + @unittest.skipIf(openssl_hashlib is None, "requires OpenSSL bindings") def test_pbkdf2_hmac_c(self): self._test_pbkdf2_hmac(openssl_hashlib.pbkdf2_hmac, openssl_md_meth_names) |