changeset 12737:7adb1274a4f9 stable

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 89df79b3c011
children e9733f96b38b 469850088fc1
files tests/test-url.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: