[PATCH] tests: make run-tests.py run on Python 3 again
Yuya Nishihara
yuya at tcha.org
Wed Mar 8 15:49:31 UTC 2017
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1488978769 -32400
# Wed Mar 08 22:12:49 2017 +0900
# Node ID 08b1e247765641ab9ab7734add717e0c64b3c938
# Parent 132c275a0133ae30702d8fc11f98fdc89c9a74b9
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)
More information about the Mercurial-devel
mailing list