Skip to content

Commit d27c2e9

Browse files
committed
pythonbuild: make wanted hashes check more lenient
This is failing on 3.9 because it introduced more hashes.
1 parent 8cc390a commit d27c2e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pythonbuild/verify_distribution.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def verify_curses():
5151
def verify_hashlib():
5252
import hashlib
5353

54-
assert hashlib.algorithms_available == {
54+
wanted_hashes = {
5555
"blake2b",
5656
"blake2b512",
5757
"blake2s",
@@ -84,6 +84,10 @@ def verify_hashlib():
8484
"whirlpool",
8585
}
8686

87+
missing_hashes = wanted_hashes - hashlib.algorithms_available
88+
89+
assert not missing_hashes, "missing hashes: %s" % missing_hashes
90+
8791

8892
def verify_sqlite():
8993
import sqlite3

0 commit comments

Comments
 (0)