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

login
register
mail settings
Submitter Boris Feld
Date Nov. 19, 2017, 8:27 p.m.
Message ID <bce28660d7df4043e7ee.1511123267@FB>
Download mbox | patch
Permalink /patch/25647/
State Accepted
Headers show

Comments

Boris Feld - Nov. 19, 2017, 8:27 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@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.

Patch

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 = {}