# HG changeset patch # User Augie Fackler # Date 1286899365 18000 # Node ID 7adb1274a4f930e13b35545ef23914ccae7d5534 # Parent 89df79b3c011f7824cac6c03c59c1ca4252dbfc2 test-url: skip test when ssl module is unavailable diff -r 89df79b3c011 -r 7adb1274a4f9 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: