Patchwork [1,of,7] py3: byte-stringify literals in extension in test-bundle2-exchange.t

login
register
mail settings
Submitter Yuya Nishihara
Date July 9, 2018, 1:24 p.m.
Message ID <505e0568b89501ef64d0.1531142671@mimosa>
Download mbox | patch
Permalink /patch/32699/
State Accepted
Headers show

Comments

Yuya Nishihara - July 9, 2018, 1:24 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1531044300 -32400
#      Sun Jul 08 19:05:00 2018 +0900
# Node ID 505e0568b89501ef64d0522ba9b12afbd8642bca
# Parent  a936d1368fc5c54dadb9ebae3621657b2bcf5e4c
py3: byte-stringify literals in extension in test-bundle2-exchange.t

# skip-blame just some b''

Patch

diff --git a/tests/test-bundle2-exchange.t b/tests/test-bundle2-exchange.t
--- a/tests/test-bundle2-exchange.t
+++ b/tests/test-bundle2-exchange.t
@@ -936,11 +936,11 @@  Test lazily acquiring the lock during un
   > import os
   > from mercurial import extensions, bundle2, error
   > def checklock(orig, repo, *args, **kwargs):
-  >     if repo.svfs.lexists("lock"):
-  >         raise error.Abort("Lock should not be taken")
+  >     if repo.svfs.lexists(b"lock"):
+  >         raise error.Abort(b"Lock should not be taken")
   >     return orig(repo, *args, **kwargs)
   > def extsetup(ui):
-  >    extensions.wrapfunction(bundle2, 'processbundle', checklock)
+  >    extensions.wrapfunction(bundle2, b'processbundle', checklock)
   > EOF
 
   $ hg init lazylock