Patchwork [3,of,5] py3: make test-bisect.t bytes-safe

login
register
mail settings
Submitter Yuya Nishihara
Date March 10, 2018, 8:11 a.m.
Message ID <61f2121cac167752acc5.1520669473@mimosa>
Download mbox | patch
Permalink /patch/29243/
State Accepted
Headers show

Comments

Yuya Nishihara - March 10, 2018, 8:11 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1520341884 21600
#      Tue Mar 06 07:11:24 2018 -0600
# Node ID 61f2121cac167752acc5014ac7f4c4da100a2097
# Parent  f4f4de07f3d1cd9c9bf3ca94adce78e8b4ae446e
py3: make test-bisect.t bytes-safe

Patch

diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -16,6 +16,7 @@  test-backout.t
 test-backwards-remove.t
 test-basic.t
 test-bheads.t
+test-bisect.t
 test-bisect2.t
 test-blackbox.t
 test-bookmarks-current.t
diff --git a/tests/test-bisect.t b/tests/test-bisect.t
--- a/tests/test-bisect.t
+++ b/tests/test-bisect.t
@@ -465,8 +465,8 @@  test bisecting command
   > from __future__ import absolute_import
   > import sys
   > from mercurial import hg, ui as uimod
-  > repo = hg.repository(uimod.ui.load(), '.')
-  > if repo['.'].rev() < 6:
+  > repo = hg.repository(uimod.ui.load(), b'.')
+  > if repo[b'.'].rev() < 6:
   >     sys.exit(1)
   > EOF
   $ chmod +x script.py