diff tests/run-tests.py @ 19299:cdc612db2ffb

run-tests: open hgrc file only for writing The file is not read here. Opening with "w+" is unnecessary.
author Simon Heimberg <simohe@besonet.ch>
date Wed, 05 Jun 2013 22:42:43 +0200
parents 3c3f6b83f8cb
children d7d40600a248
line wrap: on
line diff
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -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')