Mercurial > hg
diff tests/run-tests.py @ 31227: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 | 23bcfdd76f96 |
children | 632e07e72a22 |
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)