changeset 31237:ac47df82bdba

tests: make run-tests.py run on Python 3 again
author Yuya Nishihara <yuya@tcha.org>
date Wed, 08 Mar 2017 22:12:49 +0900
parents cf8ad0e6c0e4
children 51934fc796c0
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)