Patchwork [3,of,4] py3: byte-stringify inline extension in test-logtoprocess.t

login
register
mail settings
Submitter Yuya Nishihara
Date Nov. 13, 2018, 1:42 p.m.
Message ID <355cce9374b1f3ca2ece.1542116538@mimosa>
Download mbox | patch
Permalink /patch/36543/
State Accepted
Headers show

Comments

Yuya Nishihara - Nov. 13, 2018, 1:42 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1541907338 -32400
#      Sun Nov 11 12:35:38 2018 +0900
# Node ID 355cce9374b1f3ca2ecee3c29957b37447b565a4
# Parent  f05dc9a1613a2086e8effb1dda5f446d52d5237f
py3: byte-stringify inline extension in test-logtoprocess.t

Patch

diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -315,6 +315,7 @@  test-log-exthook.t
 test-log-linerange.t
 test-log.t
 test-logexchange.t
+test-logtoprocess.t
 test-lrucachedict.py
 test-mactext.t
 test-mailmap.t
diff --git a/tests/test-logtoprocess.t b/tests/test-logtoprocess.t
--- a/tests/test-logtoprocess.t
+++ b/tests/test-logtoprocess.t
@@ -14,12 +14,12 @@  Test if logtoprocess correctly captures 
   > command = registrar.command(cmdtable)
   > configtable = {}
   > configitem = registrar.configitem(configtable)
-  > configitem('logtoprocess', 'foo',
+  > configitem(b'logtoprocess', b'foo',
   >     default=None,
   > )
   > @command(b'foobar', [])
   > def foo(ui, repo):
-  >     ui.log('foo', 'a message: %s\n', 'spam')
+  >     ui.log(b'foo', b'a message: %s\n', b'spam')
   > EOF
   $ cp $HGRCPATH $HGRCPATH.bak
   $ cat >> $HGRCPATH << EOF