tests: add b'' to test-missing-capability.t
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 22 Jan 2019 16:53:24 -0800
changeset 41338 d3cc9a8df63a
parent 41337 d60bd5c71cbb
child 41339 15fd3069caa6
tests: add b'' to test-missing-capability.t The test now passes on Python 3. # skip-blame just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D5645
tests/test-missing-capability.t
--- a/tests/test-missing-capability.t	Tue Jan 22 11:41:22 2019 -0500
+++ b/tests/test-missing-capability.t	Tue Jan 22 16:53:24 2019 -0800
@@ -15,7 +15,7 @@
   > from mercurial import extensions, wireprotov1server
   > def wcapabilities(orig, *args, **kwargs):
   >   cap = orig(*args, **kwargs)
-  >   cap.remove('$1')
+  >   cap.remove(b'$1')
   >   return cap
   > extensions.wrapfunction(wireprotov1server, '_capabilities', wcapabilities)
   > EOF