# HG changeset patch # User Augie Fackler # Date 2010-10-12 16:02:45 # Node ID 24f16c2c6d410bbd13a1a85263f4e2d31ec130a8 # Parent 66e7ba85585b1a63196c68c5535fdc56bf6b1013 test-url: skip test when ssl module is unavailable diff --git a/tests/test-url.py b/tests/test-url.py --- a/tests/test-url.py +++ b/tests/test-url.py @@ -1,4 +1,9 @@ #!/usr/bin/env python +import sys +try: + import ssl +except ImportError: + sys.exit(80) def check(a, b): if a != b: