Mercurial > hg
comparison tests/test-url.py @ 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 | f2937d6492c5 |
children | e9733f96b38b |
comparison
equal
deleted
inserted
replaced
12717:89df79b3c011 | 12737:7adb1274a4f9 |
---|---|
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 |