Patchwork D5646: tests: add b'' to notcapable

login
register
mail settings
Submitter phabricator
Date Jan. 23, 2019, 5:49 a.m.
Message ID <d60b67c80f024c02616856928ce4be91@localhost.localdomain>
Download mbox | patch
Permalink /patch/37918/
State Not Applicable
Headers show

Comments

phabricator - Jan. 23, 2019, 5:49 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG15fd3069caa6: tests: add b&#039;&#039; to notcapable (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5646?vs=13342&id=13358

REVISION DETAIL
  https://phab.mercurial-scm.org/D5646

AFFECTED FILES
  tests/notcapable

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/notcapable b/tests/notcapable
--- a/tests/notcapable
+++ b/tests/notcapable
@@ -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):