Patchwork [4,of,4] test-basic: make it work on Python 3

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 4, 2017, 2:53 p.m.
Message ID <e6986d59d73bb743c878.1507128837@mimosa>
Download mbox | patch
Permalink /patch/24494/
State Accepted
Headers show

Comments

Yuya Nishihara - Oct. 4, 2017, 2:53 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1506924033 -3600
#      Mon Oct 02 07:00:33 2017 +0100
# Node ID e6986d59d73bb743c87856bf5ea1a4d869569b8f
# Parent  fecbf1e8aa17474f448e126697fe287e44c92664
test-basic: make it work on Python 3
Augie Fackler - Oct. 10, 2017, 12:56 a.m.
On Wed, Oct 04, 2017 at 11:53:57PM +0900, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1506924033 -3600
> #      Mon Oct 02 07:00:33 2017 +0100
> # Node ID e6986d59d73bb743c87856bf5ea1a4d869569b8f
> # Parent  fecbf1e8aa17474f448e126697fe287e44c92664
> test-basic: make it work on Python 3

queued, thanks

Patch

diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -1,6 +1,7 @@ 
 test-addremove.t
 test-ancestor.py
 test-backwards-remove.t
+test-basic.t
 test-bheads.t
 test-bisect2.t
 test-bookmarks-merge.t
diff --git a/tests/test-basic.t b/tests/test-basic.t
--- a/tests/test-basic.t
+++ b/tests/test-basic.t
@@ -66,7 +66,7 @@  Verify that updating to revision 0 via c
   $ cat <<EOF > update_to_rev0.py
   > from mercurial import ui, hg, commands
   > myui = ui.ui.load()
-  > repo = hg.repository(myui, path='.')
+  > repo = hg.repository(myui, path=b'.')
   > commands.update(myui, repo, rev=0)
   > EOF
   $ hg up null