[PATCH] testing: allow Hypothesis tests to disable extensions

Martin von Zweigbergk martinvonz at google.com
Fri Feb 26 13:51:11 EST 2016


On Fri, Feb 26, 2016 at 9:16 AM, David R. MacIver <david at drmaciver.com> wrote:
> # HG changeset patch
> # User David R. MacIver <david at drmaciver.com>
> # Date 1456506949 0
> #      Fri Feb 26 17:15:49 2016 +0000
> # Node ID 9a28035d39f02fc7e03d0d376ce66998628a6877
> # Parent  18680fed30581e7286a72b93af97de980a178d96
> testing: allow Hypothesis tests to disable extensions
>
> Doing this required the introduction of a mechanism for keeping
> track of more general config in the test. At present this is only
> used for extensions but it could be used more widely (e.g. to
> control specific extension behaviour)

Do you know that you can disable extensions with "--config
extensions.foo=!"? I don't know if that would simplify this patch or
if there are other reasons to keep track of config ourselves, but I
wanted to check before I review it in detail.


More information about the Mercurial-devel mailing list