Patchwork [3,of,5] py3: byteify the fakeversion extension in test-http-bad-server.t

login
register
mail settings
Submitter Matt Harbison
Date Dec. 18, 2018, 6:56 a.m.
Message ID <b91464896cc94b6da142.1545116169@Envy>
Download mbox | patch
Permalink /patch/37229/
State Accepted
Headers show

Comments

Matt Harbison - Dec. 18, 2018, 6:56 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1545100057 18000
#      Mon Dec 17 21:27:37 2018 -0500
# Node ID b91464896cc94b6da1420f3d0073dc222d417ce4
# Parent  a73e76d721fdd67ad51cad9bd8faf28ae0c48ec6
py3: byteify the fakeversion extension in test-http-bad-server.t

# skip-blame for b'' prefixing

Patch

diff --git a/tests/test-http-bad-server.t b/tests/test-http-bad-server.t
--- a/tests/test-http-bad-server.t
+++ b/tests/test-http-bad-server.t
@@ -5,7 +5,7 @@  version so behavior is deterministic.
 
   $ cat > fakeversion.py << EOF
   > from mercurial import util
-  > util.version = lambda: '4.2'
+  > util.version = lambda: b'4.2'
   > EOF
 
   $ cat >> $HGRCPATH << EOF