Recently, test_ssl has been failing intermittently but frequently on macOS buildbots, see for example here.
Since #108315, there's some code to skip tests, which does getattr(err, "reason", "") on an arbitrary exception and expects that to be a string. If reason is set to None, a regex search on it fails. This prevents the calling test from checking that the error is correct.
Activity
pythongh-126499: test_ssl: Don't assume err.reason is a string
gh-126499: test_ssl: Don't assume err.reason is a string (GH-126501)
encukou commented on Nov 7, 2024
I'll watch the buildbot for a day or two before backporting the fix.
pythongh-126499: test_ssl: Don't assume err.reason is a string (pytho…
pythongh-126499: test_ssl: Don't assume err.reason is a string (pytho…
[3.13] gh-126499: test_ssl: Don't assume err.reason is a string (GH-1…
[3.12] gh-126499: test_ssl: Don't assume err.reason is a string (GH-1…
pythongh-126499: test_ssl: Don't assume err.reason is a string (pytho…
pythongh-126499: test_ssl: Don't assume err.reason is a string (pytho…