Mercurial > hgsubversion
changeset 614:4f6017ba4d3d
testrunner: use demandimport, with an option to disable it
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Fri, 14 May 2010 20:27:24 +0200 |
parents | 58f397523604 |
children | edd112855189 |
files | tests/run.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run.py +++ b/tests/run.py @@ -51,6 +51,9 @@ if __name__ == '__main__': parser.add_option("-v", "--verbose", dest="verbose", action="store_true", default=False, help="enable verbose output") + parser.add_option("", "--no-demandimport", + dest="demandimport", action="store_false", default=True, + help="disable Mercurial demandimport loading") (options, args) = parser.parse_args() @@ -59,6 +62,10 @@ if __name__ == '__main__': else: testargs = {'descriptions': 2} + if options.demandimport: + from mercurial import demandimport + demandimport.enable() + # silence output when running outside nose sys.stdout = os.tmpfile()