Mercurial > public > mercurial-scm > hg
diff tests/hghave.py @ 20384:c499fff76440
tests: ignore http tests that are known wontfix failures on python 2.4
As mentioned on http://bz.selenic.com/show_bug.cgi?id=2739#c17 , b3083042bdda
left test-http.t failing on Python < 2.4.3. That has not been noticed because
most 2.4 testing has been done with a patched 2.4.2.
This makes sure that the tests only are run for Python >= 2.4.3. That makes it
possible to verify that everything else works with Python 2.4.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 05 Feb 2014 01:37:37 +0100 |
parents | e457321a5687 |
children | 352abbb0be88 |
line wrap: on
line diff
--- a/tests/hghave.py Wed Feb 05 01:30:33 2014 +0100 +++ b/tests/hghave.py Wed Feb 05 01:37:37 2014 +0100 @@ -248,6 +248,9 @@ except ImportError: return False +def has_python243(): + return sys.version_info >= (2, 4, 3) + def has_outer_repo(): # failing for other reasons than 'no repo' imply that there is a repo return not matchoutput('hg root 2>&1', @@ -320,6 +323,7 @@ "p4": (has_p4, "Perforce server and client"), "pyflakes": (has_pyflakes, "Pyflakes python linter"), "pygments": (has_pygments, "Pygments source highlighting library"), + "python243": (has_python243, "python >= 2.4.3"), "root": (has_root, "root permissions"), "serve": (has_serve, "platform and python can manage 'hg serve -d'"), "ssl": (has_ssl, "python >= 2.6 ssl module and python OpenSSL"),