[PATCH] run-tests: write out scripts in binary mode
Augie Fackler
raf at durin42.com
Thu Mar 13 02:58:47 UTC 2014
# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1383680855 18000
# Tue Nov 05 14:47:35 2013 -0500
# Node ID bc7e2f5d07e98d343ec0751e5a44813ad7894415
# Parent 1cd5bff45db28150d7c140be493fe851e6560f27
run-tests: write out scripts in binary mode
Caught because Python 3 refuses to write bytes to a non-binary fd.
diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -753,7 +753,7 @@
# Write out the script and execute it
name = wd + '.sh'
- f = open(name, 'w')
+ f = open(name, 'wb')
for l in script:
f.write(l)
f.close()
More information about the Mercurial-devel
mailing list