run-tests: move from dict() construction to {} literals
The latter are both faster and more consistent across Python 2 and 3.
[ original upstream message ]
--- a/tests/run-tests.py Sat Mar 08 17:38:50 2014 -0600
+++ 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: