Commit f7363ed8 authored by Benjamin Peterson's avatar Benjamin Peterson

use more ugly but hopefully more robust method

parent 69a64d3f
......@@ -488,7 +488,7 @@ def system_must_validate_cert(f):
try:
f(*args, **kwargs)
except IOError as e:
if getattr(e, "reason", "") == "CERTIFICATE_VERIFY_FAILED":
if "CERTIFICATE_VERIFY_FAILED" in str(e):
raise unittest.SkipTest("system does not contain "
"necessary certificates")
raise
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment