# HG changeset patch # User Augie Fackler # Date 1394644783 14400 # Node ID d3d3e94e2910b11a32cbe319f22059a77026d0de # Parent 0916f829eb8d0b2bf1d5e8037f55c72b964a9006 run-tests: move from dict() construction to {} literals The latter are both faster and more consistent across Python 2 and 3. diff -r 0916f829eb8d -r d3d3e94e2910 tests/run-tests.py --- a/tests/run-tests.py Wed Mar 12 13:19:20 2014 -0400 +++ b/tests/run-tests.py Wed Mar 12 13:19:43 2014 -0400 @@ -479,10 +479,10 @@ ' build %(compiler)s --build-base="%(base)s"' ' install --force --prefix="%(prefix)s" --install-lib="%(libdir)s"' ' --install-scripts="%(bindir)s" %(nohome)s >%(logfile)s 2>&1' - % dict(exe=sys.executable, py3=py3, pure=pure, compiler=compiler, - base=os.path.join(HGTMP, "build"), - prefix=INST, libdir=PYTHONDIR, bindir=BINDIR, - nohome=nohome, logfile=installerrs)) + % {'exe': sys.executable, 'py3': py3, 'pure': pure, + 'compiler': compiler, 'base': os.path.join(HGTMP, "build"), + 'prefix': INST, 'libdir': PYTHONDIR, 'bindir': BINDIR, + 'nohome': nohome, 'logfile': installerrs}) vlog("# Running", cmd) if os.system(cmd) == 0: if not options.verbose: