[PATCH 1 of 2] run-test: use byte for 'common-pattern.py' path

Boris Feld boris.feld at octobus.net
Sun Nov 19 20:27:47 UTC 2017


# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1511061055 -3600
#      Sun Nov 19 04:10:55 2017 +0100
# Node ID bce28660d7df4043e7ee295d1fa6be90cacbe128
# Parent  8db4ca76841674ab14974539116b454ddbc9500f
# EXP-Topic run-test-fixes
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r bce28660d7df
run-test: use byte for 'common-pattern.py' path

This is required for Python 3.

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -969,7 +969,7 @@ class Test(unittest.TestCase):
         r.append((self._escapepath(self._testtmp), b'$TESTTMP'))
 
         testdir = os.path.dirname(self.path)
-        replacementfile = os.path.join(testdir, 'common-pattern.py')
+        replacementfile = os.path.join(testdir, b'common-pattern.py')
 
         if os.path.exists(replacementfile):
             data = {}


More information about the Mercurial-devel mailing list