Patchwork [3,of,3] py3: make test-basic.t pass on Python 3

login
register
mail settings
Submitter Yuya Nishihara
Date March 3, 2018, 3:52 a.m.
Message ID <19279a4054f6d095ae68.1520049156@mimosa>
Download mbox | patch
Permalink /patch/28764/
State Accepted
Headers show

Comments

Yuya Nishihara - March 3, 2018, 3:52 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1520048289 18000
#      Fri Mar 02 22:38:09 2018 -0500
# Node ID 19279a4054f6d095ae6877f01ec0c117f1054b68
# Parent  93fda19cf79e6f5d40b27720a0d65cd862f3a9f9
py3: make test-basic.t pass on Python 3
Augie Fackler - March 3, 2018, 4:42 p.m.
On Fri, Mar 02, 2018 at 10:52:36PM -0500, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1520048289 18000
> #      Fri Mar 02 22:38:09 2018 -0500
> # Node ID 19279a4054f6d095ae6877f01ec0c117f1054b68
> # Parent  93fda19cf79e6f5d40b27720a0d65cd862f3a9f9
> py3: make test-basic.t pass on Python 3

queued, thanks

Patch

diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -8,6 +8,7 @@  test-annotate.py
 test-automv.t
 test-backout.t
 test-backwards-remove.t
+test-basic.t
 test-bheads.t
 test-bisect2.t
 test-bookmarks-current.t
diff --git a/tests/test-basic.t b/tests/test-basic.t
--- a/tests/test-basic.t
+++ b/tests/test-basic.t
@@ -59,7 +59,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