# HG changeset patch # User Simon Heimberg # Date 2013-06-05 20:42:43 # Node ID cdc612db2ffba845d00885c9759f0c2d81f46397 # Parent 6cd8403e070fc02dda5e11d911cf1a6920a112ac run-tests: open hgrc file only for writing The file is not read here. Opening with "w+" is unnecessary. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -333,7 +333,7 @@ def findprogram(program): def createhgrc(path, options): # create a fresh hgrc - hgrc = open(path, 'w+') + hgrc = open(path, 'w') hgrc.write('[ui]\n') hgrc.write('slash = True\n') hgrc.write('interactive = False\n')