[PATCH 3 of 3] tests: test to detect newly introduced reference cycles

Simon Heimberg simohe at besonet.ch
Tue Jul 14 07:09:55 CDT 2009


Am Montag, den 13.07.2009, 16:15 +0200 schrieb Simon Heimberg:
> # HG changeset patch
> # User Simon Heimberg <simohe at besonet.ch>
> # Date 1247492561 -7200
> # Node ID 40634563c71bed080e70648693ca55d48ee3c2f3
> # Parent  d0d02a480e6a65cac1c86f7e74445c3e71ed173a
> tests: test to detect newly introduced reference cycles
> 
> diff -r d0d02a480e6a -r 40634563c71b tests/test-reference-cycle.py
> --- /dev/null	Don Jan 01 00:00:00 1970 +0000
> +++ b/tests/test-reference-cycle.py	Mon Jul 13 15:42:41 2009 +0200
> @@ -0,0 +1,50 @@
> +from mercurial import hg, ui, extensions
> +import os, gc
> +import gc

oops, gc is imported twice. Shall I resend?

> +
> +gcstate = gc.isenabled()
> +gc.disable()
> +
[snip]


More information about the Mercurial-devel mailing list