[PATCH 2 of 2] tests: use new function from hghave.py in run-tests.py

Matt Mackall mpm at selenic.com
Mon Nov 26 17:53:35 CST 2012


On Mon, 2012-11-05 at 23:31 +0100, Simon Heimberg wrote:
> # HG changeset patch
> # User Simon Heimberg <simohe at besonet.ch>
> # Date 1350334854 -7200
> # Branch stable
> # Node ID c7ee0fd5eb125630ed44c506c2256359ed19f13a
> # Parent  6048e40535539238a6368bb9e5d4f9aefb79bafe
> tests: use new function from hghave.py in run-tests.py
> 
> diff -r 6048e4053553 -r c7ee0fd5eb12 tests/run-tests.py
> --- a/tests/run-tests.py	Mon Okt 15 22:59:03 2012 +0200
> +++ b/tests/run-tests.py	Mon Okt 15 23:00:54 2012 +0200
> @@ -563,16 +563,15 @@
>      # True or False when in a true or false conditional section
>      skipping = None
>  
> +    import hghave as hghavemod

FYI, we don't encourage imports in code bodies except in special
circumstances.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list