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): ...@@ -488,7 +488,7 @@ def system_must_validate_cert(f):
try: try:
f(*args, **kwargs) f(*args, **kwargs)
except IOError as e: 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 " raise unittest.SkipTest("system does not contain "
"necessary certificates") "necessary certificates")
raise 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