test-url: skip test when ssl module is unavailable
authorAugie Fackler <durin42@gmail.com>
Tue, 12 Oct 2010 11:02:45 -0500
changeset 12725 24f16c2c6d41
parent 12724 66e7ba85585b
child 12726 61c0df2b089a
test-url: skip test when ssl module is unavailable
tests/test-url.py
--- a/tests/test-url.py	Tue Oct 12 11:02:05 2010 -0500
+++ b/tests/test-url.py	Tue Oct 12 11:02:45 2010 -0500
@@ -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: