# HG changeset patch # User Simon Heimberg # Date 1370464963 -7200 # Node ID ae952fb9707fd87cdb31797ad5b3e79453a5c522 # Parent f31eefe0ab4cb42dff2ebf64cc5b9f6ed9061efb run-tests: open hgrc file only for writing The file is not read here. Opening with "w+" is unnecessary. [ original upstream message ] diff -r f31eefe0ab4c -r ae952fb9707f tests/run-tests.py --- a/tests/run-tests.py Thu Jun 06 14:40:26 2013 -0500 +++ b/tests/run-tests.py Wed Jun 05 22:42:43 2013 +0200 @@ -333,7 +333,7 @@ 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')