[PATCH] tests: make run-tests.py run on Python 3 again

Augie Fackler raf at durin42.com
Wed Mar 8 11:31:16 EST 2017


On Thu, Mar 09, 2017 at 12:49:31AM +0900, Yuya Nishihara wrote:
> # 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

Queued, thanks.

I think Kevin and I should spend an hour at the sprint to set up a
Python3 buildbot that runs whatever test targets make sense.

>
> 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)
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list