Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
12724:66e7ba85585b | 12725:24f16c2c6d41 |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 import sys | |
3 try: | |
4 import ssl | |
5 except ImportError: | |
6 sys.exit(80) | |
2 | 7 |
3 def check(a, b): | 8 def check(a, b): |
4 if a != b: | 9 if a != b: |
5 print (a, b) | 10 print (a, b) |
6 | 11 |