Mercurial > public > mercurial-scm > hg-stable
comparison tests/run-tests.py @ 20680:d3d3e94e2910
run-tests: move from dict() construction to {} literals
The latter are both faster and more consistent across Python 2 and 3.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 12 Mar 2014 13:19:43 -0400 |
parents | 352abbb0be88 |
children | 60c175c1e708 |
comparison
equal
deleted
inserted
replaced
20679:0916f829eb8d | 20680:d3d3e94e2910 |
---|---|
477 nohome = '' | 477 nohome = '' |
478 cmd = ('%(exe)s setup.py %(py3)s %(pure)s clean --all' | 478 cmd = ('%(exe)s setup.py %(py3)s %(pure)s clean --all' |
479 ' build %(compiler)s --build-base="%(base)s"' | 479 ' build %(compiler)s --build-base="%(base)s"' |
480 ' install --force --prefix="%(prefix)s" --install-lib="%(libdir)s"' | 480 ' install --force --prefix="%(prefix)s" --install-lib="%(libdir)s"' |
481 ' --install-scripts="%(bindir)s" %(nohome)s >%(logfile)s 2>&1' | 481 ' --install-scripts="%(bindir)s" %(nohome)s >%(logfile)s 2>&1' |
482 % dict(exe=sys.executable, py3=py3, pure=pure, compiler=compiler, | 482 % {'exe': sys.executable, 'py3': py3, 'pure': pure, |
483 base=os.path.join(HGTMP, "build"), | 483 'compiler': compiler, 'base': os.path.join(HGTMP, "build"), |
484 prefix=INST, libdir=PYTHONDIR, bindir=BINDIR, | 484 'prefix': INST, 'libdir': PYTHONDIR, 'bindir': BINDIR, |
485 nohome=nohome, logfile=installerrs)) | 485 'nohome': nohome, 'logfile': installerrs}) |
486 vlog("# Running", cmd) | 486 vlog("# Running", cmd) |
487 if os.system(cmd) == 0: | 487 if os.system(cmd) == 0: |
488 if not options.verbose: | 488 if not options.verbose: |
489 os.remove(installerrs) | 489 os.remove(installerrs) |
490 else: | 490 else: |