changeset 41314:15fd3069caa6

tests: add b'' to notcapable This fixes some exceptions in a few tests. # skip-blame just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D5646
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 22 Jan 2019 16:54:56 -0800
parents d3cc9a8df63a
children a9b609fbe39c
files tests/notcapable
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/notcapable	Tue Jan 22 16:53:24 2019 -0800
+++ b/tests/notcapable	Tue Jan 22 16:54:56 2019 -0800
@@ -11,7 +11,7 @@
     extensions.wrapfunction(repository.peer, 'capable', wrapcapable)
     extensions.wrapfunction(localrepo.localrepository, 'peer', wrappeer)
 def wrapcapable(orig, self, name, *args, **kwargs):
-    if name in '$CAP'.split(' '):
+    if name in b'$CAP'.split(b' '):
         return False
     return orig(self, name, *args, **kwargs)
 def wrappeer(orig, self):