# HG changeset patch # User Yuya Nishihara # Date 2017-03-08 13:12:49 # Node ID ac47df82bdbaea2c669d845c187d557041edb3b8 # Parent cf8ad0e6c0e4555809c8e7232c8819ecf152bf1b tests: make run-tests.py run on Python 3 again diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -941,7 +941,7 @@ class Test(unittest.TestCase): (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)