Skip to content

Commit b3b3740

Browse files
committed
Merge PR #791 into main
2 parents 7bfd066 + dff489a commit b3b3740

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cheroot/test/test_ssl.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,10 @@ def test_openssl_adapter_with_false_key_password(
924924

925925
with expected_warn, pytest.raises(
926926
OpenSSL.SSL.Error,
927-
match=r'.+bad decrypt.+',
927+
# Decode error has happened very rarely with Python 3.9 in MacOS.
928+
# Might be caused by a random issue in file handling leading
929+
# to interpretation of garbage characters in certificates.
930+
match=r'.+\'(bad decrypt|decode error)\'.+',
928931
):
929932
httpserver.prepare()
930933

0 commit comments

Comments
 (0)