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

Yuya Nishihara yuya at tcha.org
Sat Mar 10 03:11:13 EST 2018


# HG changeset patch
# User Yuya Nishihara <yuya at 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

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


More information about the Mercurial-devel mailing list