test-url: skip test when ssl module is unavailable stable
authorAugie Fackler <durin42@gmail.com>
Tue, 12 Oct 2010 11:02:45 -0500
branchstable
changeset 12737 7adb1274a4f9
parent 12717 89df79b3c011
child 12738 e9733f96b38b
child 12793 469850088fc1
test-url: skip test when ssl module is unavailable
tests/test-url.py
--- a/tests/test-url.py	Fri Oct 01 10:15:04 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: