Skip to content

Commit 91664a1

Browse files
committed
verify: don't check for mdc2 hash on Windows
1 parent b4a80b9 commit 91664a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/verify_distribution.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def test_hashlib(self):
7676
"md4",
7777
"md5",
7878
"md5-sha1",
79-
"mdc2",
8079
"ripemd160",
8180
"sha1",
8281
"sha224",
@@ -101,6 +100,10 @@ def test_hashlib(self):
101100
"whirlpool",
102101
}
103102

103+
# Windows doesn't appear to support mdc2.
104+
if os.name != "nt":
105+
wanted_hashes.add("mdc2")
106+
104107
for hash in wanted_hashes:
105108
self.assertIn(hash, hashlib.algorithms_available)
106109

0 commit comments

Comments
 (0)