Submitter | timeless@mozdev.org |
---|---|
Date | April 1, 2016, 10:25 p.m. |
Message ID | <933f28781c43d5504c7d.1459549524@waste.org> |
Download | mbox | patch |
Permalink | /patch/14242/ |
State | Changes Requested |
Headers | show |
Comments
Patch
diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -110,12 +110,13 @@ except ImportError: return False -@check("bzr114", "Canonical's Bazaar client >= 1.14") -def has_bzr114(): +@checkrange("bzr", "Canonical's Bazaar client >= %s", (1.14,)) +def has_bzr_range(v): + major, minor = v.split('.')[0:2] try: import bzrlib return (bzrlib.__doc__ is not None - and bzrlib.version_info[:2] >= (1, 14)) + and bzrlib.version_info[:2] >= (int(major), int(minor))) except ImportError: return False