tests: make run-tests.py run on Python 3 again
authorYuya Nishihara <yuya@tcha.org>
Wed, 08 Mar 2017 22:12:49 +0900
changeset 31227 ac47df82bdba
parent 31226 cf8ad0e6c0e4
child 31228 51934fc796c0
tests: make run-tests.py run on Python 3 again
tests/run-tests.py
--- a/tests/run-tests.py	Tue Mar 07 16:27:32 2017 -0800
+++ b/tests/run-tests.py	Wed Mar 08 22:12:49 2017 +0900
@@ -941,7 +941,7 @@
                    (os.path.join(self._testtmp, b'.cache/largefiles')))
         hgrc.write(b'[web]\n')
         hgrc.write(b'address = localhost\n')
-        hgrc.write(b'ipv6 = %s\n' % self._useipv6)
+        hgrc.write(b'ipv6 = %s\n' % str(self._useipv6).encode('ascii'))
 
         for opt in self._extraconfigopts:
             section, key = opt.split('.', 1)