run-tests: open hgrc file only for writing
authorSimon Heimberg <simohe@besonet.ch>
Wed, 05 Jun 2013 22:42:43 +0200
changeset 19299 cdc612db2ffb
parent 19298 6cd8403e070f
child 19300 d7d40600a248
run-tests: open hgrc file only for writing The file is not read here. Opening with "w+" is unnecessary.
tests/run-tests.py
--- a/tests/run-tests.py	Wed Jun 05 22:06:16 2013 +0200
+++ 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')