changeset 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 61c0df2b089a
files tests/test-url.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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: