diff tests/test-url.py @ 12725:24f16c2c6d41

test-url: skip test when ssl module is unavailable
author Augie Fackler <durin42@gmail.com>
date Tue, 12 Oct 2010 11:02:45 -0500
parents 66e7ba85585b
children e9733f96b38b
line wrap: on
line diff
--- 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: