run-tests: move from dict() construction to {} literals
authorAugie Fackler <raf@durin42.com>
Wed, 12 Mar 2014 13:19:43 -0400
changeset 20680 d3d3e94e2910
parent 20679 0916f829eb8d
child 20681 52e5aca15f0c
run-tests: move from dict() construction to {} literals The latter are both faster and more consistent across Python 2 and 3.
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: